anoopj opened a new pull request, #3314:
URL: https://github.com/apache/iceberg-rust/pull/3314

   ## Which issue does this PR close?
   
   Closes #3264
   
   ## What changes are included in this PR?
   
   Page-index bounds for `INT32`/`INT64` columns were built as `Int`/`Long` 
literals regardless of the Iceberg field type. For decimal fields, query datums 
use `Int128`, and Datum::partial_cmp only compares decimals when both sides are 
Int128, so every comparison returned None. This silently pruned all matching 
pages for inequality and IN predicates when page-index row selection was 
enabled.
   
   Convert `INT32`/`INT64` page bounds to `Int128` for decimal fields, matching 
the row-group statistics path.
   
   Follow-up: FIXED_LEN_BYTE_ARRAY decimals (precision > 18) still get no 
page-index pruning, even though the row-group stats path decodes them. This 
only over-selects pages (never drops rows) and is pre-existing. Decoding them 
here later must guard against truncated ColumnIndex bounds 
(column_index_truncate_length).
   
   ## Are these changes tested?
   
   Added new unit tests. 


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