zhangyue19921010 opened a new pull request, #11392:
URL: https://github.com/apache/paimon/pull/11392

   ### Purpose
   
   Fixes #11391.
   
   When a key and a payload column share a PyPaimon `DataType`, normalizing the 
key's nullability also changes the payload column. A nullable payload can be 
persisted as `NOT NULL`, and the writer then rejects valid rows. Copy only the 
key fields whose nullability changes, leaving the original type and non-key 
fields intact.
   
   ### Tests
   
   - Both regressions fail on the unchanged base and pass with the fix: a 
Parquet table round-trips a NULL payload, and opting into nullable keys leaves 
a shared `NOT NULL` payload unchanged.
   - Focused PyPaimon suite: 187 passed; 44 Native-marked cases moved to the 
Native lane. Native nullable-key and row-kind suites: 173 passed with 
`PYPAIMON_TEST_NATIVE_PLAN=1`.
   - Python license header and flake8 checks, and the root Apache RAT check, 
passed.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to