Anurag-S1ngh opened a new pull request, #19301: URL: https://github.com/apache/iceberg/pull/19301
## Summary - `InclusiveEvalVisitor` pruned files whose column contains only NaN when evaluating `>` and `>=`. Iceberg's row `Evaluator` returns true for those comparisons, because the spec orders NaN after all other values, so the metrics evaluator was inconsistent and pushed-down Spark filters silently dropped matching rows. - Treat NaN-only files as possible matches for `gt` and `gtEq`. `gt` with a NaN literal still cannot match. ## Changes - `InclusiveEvalVisitor.gt` and `gtEq`: handle `containsNaNsOnly` explicitly instead of returning `ROWS_CANNOT_MATCH`. - Update the all-NaN expectations in `TestMetricsEvaluatorsNaNHandling`. ## Testing - `./gradlew :iceberg-api:test` passes. - `./gradlew :iceberg-core:test --tests "org.apache.iceberg.TestDeleteFiles"` passes. - The updated test fails on the unmodified evaluator with `Expecting value to be true but was false`. - `spotlessApply` run for the API module. Closes #19264 -- 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]
