You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "JingsongLi (via GitHub)" <gi...@apache.org> on 2026/09/20 11:52:24 UTC
[PR] [python] Read Python-planned splits with the native reader [paimon]
JingsongLi opened a new pull request, #10017:
URL: https://github.com/apache/paimon/pull/10017
## Purpose
Keep PyPaimon's Rust physical reader available when the scan must be planned in Python. This extends native coverage to Python-planned DataSplit and IndexedSplit inputs, including Data Evolution row ranges and query-authorization wrappers.
Depends on apache/paimon-rust#889. `pypaimon-rust` has not been released, so this intentionally targets the paired API without a legacy compatibility shim. Vortex native read remains out of scope.
## Changes
- implement a Java-compatible SplitSerializer v1 writer for Python DataSplit and IndexedSplit
- serialize the current DataSplit v9 / DataFileMeta v21 layout, preserving stats, deletion vectors, row ranges, external paths, streaming/raw flags, and optional vector scores
- bridge Python-planned splits through `pypaimon_rust.datafusion.Split.deserialize` before native reads; scores remain on the Python IndexedSplit while Rust receives the physical row ranges
- attach the planned snapshot id to Python DataSplits so stable cross-language serialization is self-contained
- carry `_WRITE_COLS_SEQUENCES` / column max sequence numbers through Python manifest metadata
- support native reads for homogeneous query-authorization splits with Python-equivalent ordering: authorization filter, shared LIMIT, masking, then public projection
- widen native projection for authorization dependencies without exposing those columns to callers
- preserve safe Python fallback for unsupported split wrappers, mixed authorization contexts, nested or MAP-key authorization, and authorization filters over BLOB payloads
- harden split decoding against truncated, negative-count, malformed-array, inverted-range, oversized modified-UTF, and trailing-byte inputs
- add real Python-plan-to-Rust-read integration coverage for ordinary, partitioned, Indexed/Data Evolution, authorization, streaming-batch, projection, parallelism, and fallback paths
## Tests
- native read, split serializer, and query authorization: 114 passed
- real paired Rust-wheel native integration suite: 35 passed, including Python-planned and Indexed/Data Evolution reads
- native Python coverage group: 266 passed, plus 128 parameterized subtests
- resolved-schema coverage group: 82 passed
- non-Vortex Data Evolution group: 185 passed, 1 skipped, 10 deselected, plus 29 parameterized subtests
- changed manifest round-trip test passed
- `python -m compileall -q pypaimon`
- project flake8 configuration passed on every changed Python file
- paired Rust binding tests, clippy, and formatting are recorded in apache/paimon-rust#889
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [java][python] Read Python-planned splits with the native reader [paimon]
Posted by "leaves12138 (via GitHub)" <gi...@apache.org>.
leaves12138 commented on PR #10017:
URL: https://github.com/apache/paimon/pull/10017#issuecomment-5753829132
Re-review follow-up, together with apache/paimon-rust#889: both merged PR heads match the commits previously approved (5877a49189b58235781fd23556783ce92e3bb21a here; 1cda72a4beacb94a835b45daedbfb338ac05fa86 for Rust). I rechecked the wire-format bridge, compatibility/fallback paths, authorization fallback, and streaming behavior, and found no new blocking issues.
Fresh paired validation: 95 Rust Python-binding/wire-format tests and 556 targeted PyPaimon tests passed using the real #889 native runtime.
I also investigated the failed Python 3.6.15 CI job: https://github.com/apache/paimon/actions/runs/35512471647/job/106082738072 . It failed during **Build Java**, while Maven was downloading `org.apache.maven.reporting:maven-reporting-api:2.2.1` from Maven Central, with `Connection reset`. Python lint/tests were skipped, so this failure is not a Python 3.6 test regression. The other Python matrix jobs and Rust Plan job passed. Rerunning the failed job is the appropriate next step for that infrastructure failure; no code change is indicated by this log.
The existing approvals stand; no duplicate approval is needed after merge.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [java][python] Read Python-planned splits with the native reader [paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi merged PR #10017:
URL: https://github.com/apache/paimon/pull/10017
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org