Zoltan Borok-Nagy has uploaded this change for review. ( http://gerrit.cloudera.org:8080/25192
Change subject: IMPALA-15635: Handle NaN and -0.0 correctly in Iceberg push down ...................................................................... IMPALA-15635: Handle NaN and -0.0 correctly in Iceberg push down Iceberg compares floating-point values by their total order, where -0.0 is less than 0.0 and NaN is greater than any other value. In Impala -0.0 equals 0.0, and comparisons with NaN are false. Since IcebergPredicateConverter ignored this, Iceberg skipped data files with matching rows, queries returned rows of NaN or -0.0 identity partitions that don't match, and ALTER TABLE DROP PARTITION dropped them. The converter now: - converts d = 0 to d IN (0, -0.0), d >= 0 to d >= -0.0, d < 0 to d < -0.0, and also adds -0.0 to IN lists, - adds NOT NaN to d > x and d >= x, - doesn't convert !=, NOT IN and NOT on FLOAT and DOUBLE columns in scans. Impala doesn't write NaN value counts and leaves NaNs out of the bounds, so Iceberg would skip files with NaNs for them. Partition values are evaluated exactly, so partition filters still convert != and NOT IN. Testing: - Added EE tests for metrics, identity partitions and DROP PARTITION. - Updated an EE test where NOT on a DOUBLE column is no longer pushed down. Change-Id: I0ae5c8d75fd2ad789587f7de3851c2f31349a41b Assisted-by: Claude Opus 5.5 (Claude Code) --- M fe/src/main/java/org/apache/impala/common/IcebergPartitionPredicateConverter.java M fe/src/main/java/org/apache/impala/common/IcebergPredicateConverter.java M testdata/workloads/functional-query/queries/QueryTest/iceberg-compound-predicate-push-down.test A testdata/workloads/functional-query/queries/QueryTest/iceberg-predicate-push-down-float.test M tests/query_test/test_iceberg.py 5 files changed, 252 insertions(+), 9 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/92/25192/1 -- To view, visit http://gerrit.cloudera.org:8080/25192 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I0ae5c8d75fd2ad789587f7de3851c2f31349a41b Gerrit-Change-Number: 25192 Gerrit-PatchSet: 1 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
