yshcz opened a new pull request, #12480:
URL: https://github.com/apache/arrow-rs/pull/12480

   # Which issue does this PR close?
   
   - Closes #12479
   
   # Rationale for this change
   
   See #12479.
   
   # What changes are included in this PR?
   
   The column writer no longer tracks `boundary_order` page by page. When the 
column chunk is closed, it derives the order from `min_values` and `max_values` 
of the built column index, skipping null pages. The comparison is the same as 
`compare_greater`; for `BYTE_ARRAY` and `FIXED_LEN_BYTE_ARRAY` the same 
Float16, decimal, or byte-wise comparison is applied to the bytes in the index. 
A `pub(crate)` setter is added to `ColumnIndexMetaData`.
   
   For columns whose bounds are not truncated, the result is the same as before.
   
   # Are these changes tested?
   
   Yes. Two new tests fail without the fix: 
`test_column_index_boundary_order_of_truncated_values` writes the data from 
#12479 with `ArrowWriter` and expects `UNORDERED`, and 
`test_boundary_order_of_truncated_values` covers a truncated binary upper bound 
whose increment carries. `test_boundary_order_logical_type` also gets a decimal 
case.
   
   # Are there any significant user-facing changes?
   
   No
   
   # AI usage disclosure
   
   All of the code was written by Claude Mythos 5.2, and I reviewed it myself.


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