Skip to content

fix: preserve schemaProperties in SinkConfigUtils inputSpecs round-trip - #26426

Open
waterWang wants to merge 1 commit into
apache:masterfrom
waterWang:fix/sink-config-schema-properties
Open

fix: preserve schemaProperties in SinkConfigUtils inputSpecs round-trip#26426
waterWang wants to merge 1 commit into
apache:masterfrom
waterWang:fix/sink-config-schema-properties

Conversation

@waterWang

Copy link
Copy Markdown

Fixes #26425

Added schemaProperties copy in both convert() and convertFromDetails() in SinkConfigUtils, mirroring the consumerProperties handling and FunctionConfigUtils reference implementation.

…ip (apache#26425)

SinkConfigUtils.convert() and convertFromDetails() both silently drop
schemaProperties from ConsumerSpec when building inputSpecs, while
FunctionConfigUtils handles the field correctly. This causes permanent
drift for declarative tooling (e.g. Terraform providers) that set
schemaProperties on a sink input spec.

The proto field (ConsumerSpec.schemaProperties = 5) and the model
(ConsumerConfig.schemaProperties) both exist; only the SinkConfigUtils
conversion paths omit it.

Fix: copy schemaProperties in both directions, mirroring the existing
consumerProperties handling, and add round-trip coverage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Sink inputSpecs schemaProperties is silently dropped by SinkConfigUtils in both conversion directions

1 participant