JingsongLi opened a new pull request, #1505:
URL: https://github.com/apache/paimon-rust/pull/1505

   ### Purpose
   
   Follow-up to #1447 and #1442. Rust previously validated column defaults with 
Java-compatible casts and applied only Format Table defaults at write time. A 
valid TIME literal could still be rejected, and native writes could leave a 
NULL value that Java would replace with its default.
   
   ### Brief change log
   
   - Use the Java parser for new defaults and prefer it when writing existing 
defaults. Keep the legacy parser available for stored Format Table literals 
that Java rejects.
   - Apply defaults to NULL values in native writes before routing. Preserve 
keys and values already resolved by primary-key DML and Data Evolution upserts.
   - Retain all entries for repeated binary MAP keys, matching Java's 
byte-array key behavior.
   
   ### Tests
   
   - Cover TIME rounding and native integer defaults after catalog ALTER 
through Parquet write and read.
   - Cover partition routing with projected columns and both automatic and 
supplied buckets, row-kind defaults, and repeated binary MAP entries.
   - Verify that deleting a stored NULL primary key leaves a row with the 
default key intact, and that matching a NULL key in a Data Evolution upsert 
retains its identity.
   - Cover the legacy offset timestamp fallback and Java collection syntax.
   
   ### API and Format
   
   Uses the existing schema JSON and data-file encodings. When an existing 
default is valid in Java, future writes apply the Java interpretation.
   
   ### Documentation
   
   Updated the getting-started guide with write-time behavior and the legacy 
fallback.
   


-- 
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