Skip to content

[FLINK-36736][table] Fix target columns for row-level updates#28198

Draft
Au-Miner wants to merge 2 commits into
apache:masterfrom
Au-Miner:FLINK-36736
Draft

[FLINK-36736][table] Fix target columns for row-level updates#28198
Au-Miner wants to merge 2 commits into
apache:masterfrom
Au-Miner:FLINK-36736

Conversation

@Au-Miner
Copy link
Copy Markdown
Contributor

What is the purpose of the change

Fix DynamicTableSink.Context#getTargetColumns for row-level UPDATE so it contains all columns delivered to the sink, instead of only the columns from the SET clause.

Due to the dependency on the pre-PR FLINK-36735, it is set to draft PR.

Brief change log

  • Change DynamicSinkUtils#convertSinkToRel to apply target columns after the UPDATE rewrite, using the required physical columns returned by convertUpdate.
  • Add target-column capture support in TestUpdateDeleteTableFactory for both sink ability application and runtime sink context.

Verifying this change

Updated RowLevelUpdateTest plan expectations and UpdateTableITCase assertions to verify full-row, partial required-column, and disjoint required/updated-column UPDATE cases expose the correct target columns.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): no
  • The public API, i.e., is any changed class annotated with @Public(Evolving): no
  • The serializers: no
  • The runtime per-record code paths (performance sensitive): no
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
  • The S3 file system connector: no

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? no

@flinkbot
Copy link
Copy Markdown
Collaborator

flinkbot commented May 19, 2026

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

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.

2 participants