laskoviymishka opened a new pull request, #16974:
URL: https://github.com/apache/iceberg/pull/16974

   Proof of concept for collation support in Java, mirroring the iceberg-go 
prototype and the spec change in apache/iceberg#16972.
   
   - Types.NestedField carries an optional collation (String). StringType is a 
stateless singleton, so the collation lives on the field, not the type; it is 
only valid on string fields and is threaded through the builder, the 
asOptional/asRequired/withFieldId copies, and equals/hashCode/toString.
   - SchemaParser (de)serializes the field's "collation" attribute.
   - Comparators.charSequences(collation) returns a locale-aware comparator 
backed by java.text.Collator; a null or "utf8" collation yields the default 
UTF-8 byte-order comparator. A full implementation would use ICU for the 
complete modifier set, matching the spec's collation provider.
   
   Out of scope for this POC (documented in the spec change): collation-aware 
bounds in data_file (collation_bounds) and metrics-evaluator pruning.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to