[spark] Advance streaming source past empty full snapshots - #9401
Merged
JingsongLi merged 3 commits intoAug 27, 2026
Conversation
Contributor
|
+1 |
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.
Purpose
When a Spark streaming source started in latest-full or
from-snapshot-full mode from an empty snapshot, no end offset was
generated and the source could not continue with subsequent delta
snapshots. With consumer-id configured, the consumer checkpoint also
remained unchanged.
Generate a completion offset for empty full snapshots, advance the
source and consumer to the next snapshot, preserve correct
ReadMinRows behavior, and support checkpoint recovery while keeping
legacy offset compatibility.
Mark an existing zero-split full snapshot as completed and generate an end offset.
Store the next snapshot position in that offset and resume subsequent reads in delta mode.
Advance the Paimon consumer when the empty full snapshot is committed.
Keep ReadMinRows semantics for batches containing actual delta data.
Preserve the empty-snapshot state across Spark checkpoint serialization and restart.
Keep legacy offsets without totalSplits readable.
Prevent inconsistent totalSplits metadata when offsets are copied.
fix [spark] Streaming source cannot advance past an empty initial full snapshot #9308
Tests
Tests cover: