Hello Noemi Pap-Takacs, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
https://gerrit.cloudera.org/25192
to look at the new patch set (#3).
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, SHOW FILES 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, 267 insertions(+), 9 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/92/25192/3
--
To view, visit https://gerrit.cloudera.org/25192
To unsubscribe, visit https://gerrit.cloudera.org/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I0ae5c8d75fd2ad789587f7de3851c2f31349a41b
Gerrit-Change-Number: 25192
Gerrit-PatchSet: 3
Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Noemi Pap-Takacs <[email protected]>