Skip to content

[Iceberg CDC sink] SchemaTransform (ManagedIO) layer - #40229

Merged
ahmedabu98 merged 11 commits into
apache:masterfrom
ahmedabu98:cdc-managed-write
Sep 24, 2026
Merged

ahmedabu98 merged 11 commits into
apache:masterfrom
ahmedabu98:cdc-managed-write

Conversation

@ahmedabu98

@ahmedabu98 ahmedabu98 commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Adds the final SchemaTransform layer for the cdc sink

Fixes #39979


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@github-actions

Copy link
Copy Markdown
Contributor

Assigning reviewers:

R: @shunping for label python.
R: @kennknowles for label java.
R: @chamikaramj for label yaml.
R: @chamikaramj for label iceberg.

Note: If you would like to opt out of this review, comment assign to next reviewer.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@chamikaramj chamikaramj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment thread CHANGES.md Outdated
/** Rejects every set option that the selected mode does not support. */
void validateModeOptions() {
Mode mode = mode();
Map<String, @Nullable Object> values = new LinkedHashMap<>();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should derive this from the Configuration instead of maintaining a separate local map here and a SUPPORTED_MODES map above so that the two things don't drift in the future.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These options are only a subset of Configuration. They represent the options that apply to only one of CDC or Append mode. Options that apply to both (e.g. table or catalog_properties) are not mentioned here

Will try to think of something better though

if (!invalidOptions.isEmpty()) {
throw new IllegalArgumentException(
String.format(
"The following options are not supported by %s writes yet: %s",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably give a better hint regarding potential action to take in this error message based on the property. For example,

  • set the cdc block
  • these aren't implemented for CDC yet

@chamikaramj chamikaramj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ahmedabu98
ahmedabu98 merged commit e3b3e7c into apache:master Sep 24, 2026
114 checks passed
Amar3tto pushed a commit that referenced this pull request Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Create a merge-on-read Iceberg sink

2 participants