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

   ## Which issue does this PR close?
   
   Not tied to a specific issue - found during an audit of pushdown filter gaps.
   
   ## What changes are included in this PR?
   
   `PredicateConverter::is_nan` and `not_nan` were never actually implemented - 
`is_nan` returned `always_true` (matches every row) and `not_nan` returned 
`always_false` (matches no rows). 
   
   Every other predicate in `PredicateConverter` projects the column from the 
batch and runs an arrow compute kernel, but these two just returned constants.
   
   This adds a `compute_is_nan` helper that downcasts to 
`Float32Array`/`Float64Array` and checks each value with `f.is_nan()`, 
preserving nulls. Non-float types return all false. `is_nan` and `not_nan` now 
use it the same way `is_null`/`not_null` use `arrow::is_null`/`is_not_null`.
   
   ## Are these changes tested?
   Yes, tests added for float32 and float64
   


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