feat: add native Iceberg CDC and micro-batch execution - #5888
Draft
peterxcli wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Closes #4992.
Rationale for this change
Iceberg append micro-batches and batch changelog queries cannot currently use Comet throughout their data-processing path. This adds experimental native execution while reusing Spark/Iceberg planning and recovery.
What changes are included in this PR?
.changestasks with the existing native Iceberg reader and process carry-over removal, update images, and net changes in Rust throughcreate_changelog_view.Spark retains offsets, persistent state, and sink commits. Streaming joins/deduplication remain in Spark. Batch CDC retains Iceberg's restriction on MOR changes involving delete manifests; this does not add a streaming CDC source.
How are these changes tested?
17 integration tests passed against Polaris and RustFS with Spark 4.1.3 / Iceberg 1.11.0. They assert native execution and Spark-equivalent results for COW V1/V2/V3 CDC, snapshot/timestamp bounds, integrity queries, and streaming checkpoint/retry behavior. The same 17 tests passed with the local catalog after rebasing onto current main. Three Rust CDC tests, Clippy, Scala formatting, and style checks also passed.