Skip to content

[Iceberg CDC sink] Top API layer - #40161

Merged
ahmedabu98 merged 6 commits into
apache:masterfrom
ahmedabu98:cdc-write-cdc-rows
Sep 22, 2026
Merged

ahmedabu98 merged 6 commits into
apache:masterfrom
ahmedabu98:cdc-write-cdc-rows

Conversation

@ahmedabu98

@ahmedabu98 ahmedabu98 commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Top-level API exposed as IcebergIO.writeCdcRows.

Validates the configuration and input schema, then wires all the stages together.

Returns an IcebergWriteResult that now also exposes the replayable DLQ and, with error handling on, the failed rows (that will still fail if replayed again).

Also updated the package doc to fully describe the sink's contract.

Part of #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 github-actions Bot added java io iceberg Iceberg IO connector labels Sep 17, 2026
@ahmedabu98
ahmedabu98 marked this pull request as ready for review September 21, 2026 22:17
@github-actions

Copy link
Copy Markdown
Contributor

Assigning reviewers:

R: @Abacn for label java.
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!

* .withTriggeringFrequency(Duration.standardMinutes(1)));
* }</pre>
*/
public static WriteCdcRows writeCdcRows(IcebergCatalogConfig catalog) {

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.

Can we expose this through the Managed I/O API and recommend that ? I already exposed Delta Lake CDC read through the Managed I/O API.

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.

Yep will follow up with another PR for the SchemaTransform

@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 2906a89 into apache:master Sep 22, 2026
19 of 20 checks passed
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.

2 participants