partial_update: support sequence-group reads#584
Merged
JingsongLi merged 2 commits intoJul 22, 2026
Conversation
shyjsarah
force-pushed
the
feat/partial-update-sequence-group
branch
from
July 22, 2026 13:22
d6c1f17 to
c12fbd5
Compare
This was referenced Jul 23, 2026
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
Linked issue: close #583
Paimon Rust currently rejects existing
merge-engine=partial-updatetables that usefields.<sequence-fields>.sequence-group. This change adds read-side support so Rust and DataFusion can read Java/Flink-created sequence-group tables without falling back to incorrect basic latest-non-null semantics.Brief change log
Tests
cargo test -p paimon --lib— 1797 passed, 1 ignored.cargo clippy -p paimon --lib --tests -- -D warnings.cargo test -p paimon-datafusion --test pk_tables— 52 passed.API and Format
No public API or storage-format changes. This only expands read compatibility for existing partial-update tables. Rust table creation and writes remain unsupported for sequence groups.
Documentation
Updated the SQL documentation with the supported read-side behavior and explicit unsupported scope.
Review notes
The comparison behavior follows Java
UserDefinedSeqComparator.create(..., true): ascending field order and nulls first. Equal sequence tuples use the later row in the existing merge order. The implementation intentionally does not add ownership restrictions beyond primary-key and repeated protected-field validation used by the Java path.