Repository navigation
[python] Expand Native upserts, Dictionary MERGE and Parquet vector updates - #10629
Merged
JingsongLi merged 4 commits intoOct 17, 2026
Merged
Conversation
JingsongLi
marked this pull request as ready for review
October 17, 2026 13:19
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
Expand Native read/write/update execution for capabilities PyPaimon already supports, keeping matching and conversion in Rust core.
Matched values reuse the existing core row-ID conversions, including Binary/LargeBinary; ordinary append validation keeps its existing rules. No new dependency, public API, metadata path, or storage format.
Depends on apache/paimon-rust#1147. Native CI continues to build Rust main, so this PR remains a draft until the core changes are merged.
Tests
Built the Native extension from the companion Rust branch before starting Python tests, then ran the selected-value, key normalization, Dictionary MERGE, Parquet vector, existing upsert layout/row-shape, Blob row/update, nested update, general Native update/MERGE and shard update suites with
PYPAIMON_TEST_NATIVE_PLAN=1,PYPAIMON_TEST_NATIVE_READ=1,PYPAIMON_TEST_NATIVE_WRITE=1andPYPAIMON_TEST_NATIVE_COMMIT=1.Result: 1322 passed, 2 skipped. Native counters: 1887 plans, 2236 reads, 809 writes, 257 commits. Flake8 with the repository config and
git diff --checkpassed.New tests compare Python/Native batch and stream execution, fail explicitly on unintended Python update fallbacks, and verify values, unchanged columns, partitions, stable row IDs and dedicated vector/BLOB metadata. Key coverage includes exact conversions, overflow/precision rejection, duplicate last-write-wins, target fan-out, NULL indices and NULL dictionary values, partition dictionaries, Dictionary MERGE cardinality and unconditional DELETE, plus original append type validation. 32 positive Python/Native batch and stream cases verify Binary/LargeBinary conversions for arbitrary bytes, NULLs, nested MAP/ROW values and constructor-shaped inputs, with stable row IDs.
Follow-up review fixes