Repository navigation
[Python] Align selected write nullability with Java and Native - #10666
Merged
JingsongLi merged 2 commits intoOct 19, 2026
Merged
Conversation
JingsongLi
marked this pull request as ready for review
October 19, 2026 15:00
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
Complete the remaining verified Native write/update nullability gaps for existing PyPaimon APIs, using current Java semantics.
Depends on apache/paimon-rust#1179. Native CI continues building Rust main; keep this PR draft until the Core fixes land.
Changes
Verification
Review follow-up: chunked MERGE source regression covers batch/stream execution and NULL chunks in either order, NULL keys, unmatched NULL payloads, and dictionary values that decode to NULL. Final source-nullability suite: 25 passed, 25 Native skipped locally; Flake8 and Python 3.6 syntax pass. The companion Rust binding suite executes the real Core MERGE path without installing a Python extension.
New retained-delete and adjacent writer regressions: 237 passed, 121 skipped locally. Actual commits/readback, sequence ordering, physical schema, required fields and existing writer APIs remain covered.
New update-source and target-nullability matrix: 21 passed, 21 Native skipped. Covers Arrow/GenericRow upserts, MERGE, unused source columns, discarded duplicates, selected invalid NULLs, nullable targets, dedicated Blob and Blob collection children.
Final combined update/upsert/MERGE/chunked writer suite: 281 passed, 21 Native skipped, 44 subtests passed. Includes restoration of NOT NULL physical root fields and the existing RecordBatch columns protocol.
Final changed Python files pass repository Flake8, Python 3.6 syntax parsing and diff checks.
Java's existing deduplicate-DELETE/sequence reference tests: 2 passed.
Companion Rust retained-delete and filtered-write suites, 104 Python-binding Rust tests, 4319 core library tests (7 ignored), Rust 1.98.0 all-target Clippy and rustfmt.
Reproductions first fail on the old implementation, then pass. Local Python tests did not rebuild or install the Native extension; Native cases remain enabled for CI after the Rust fix lands.
No new dependency, public API, extension-version fallback or implicit commit-message deletion is added.