[python] Deserialize cross-language splits for native reads - #889
Merged
JingsongLi merged 1 commit intoSep 20, 2026
Merged
Conversation
leaves12138
approved these changes
Sep 20, 2026
leaves12138
left a comment
There was a problem hiding this comment.
LGTM. The new entry point delegates to the existing checked SplitSerializer v1 decoder and keeps the stable wire API separate from opaque pickle state. Verified Java DataSplit v8/v9 frames, streaming flags, score-free IndexedSplit row ranges, pickle compatibility, and malformed/unsupported-input error mapping. Validation passed: 7 wire codec tests, 76 Rust binding tests, 86 Python read tests, 9 additional fixture/error-boundary checks, and 55 paired PyPaimon integration/serialization tests, including actual Python-planned splits read through Rust. No blocking findings.
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
Let PyPaimon pass splits produced by its Python planner to the Rust reader through the stable Java-compatible
SplitSerializerv1 wire format. This keeps native physical reads available when planning cannot run in Rust, including Data Evolution row-range reads.Paired PyPaimon change: apache/paimon#10017.
Brief change log
pypaimon_rust.datafusion.Split.deserialize(bytes)forSplitSerializerv1 framesValueErrorTests
cargo test -p pypaimon_rust(76 passed)cargo clippy -p paimon -p pypaimon_rust --all-targets -- -D warningscargo fmt --all -- --checkbindings/python/tests/test_read.py(86 passed)API and Format
Adds a Python binding API. It does not change a storage format; the input is the existing
SplitSerializerv1 format.Documentation
The type stub documents the distinction between stable split bytes and pickle state. No user guide changes are required.