Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/25193 )
Change subject: IMPALA-15636: Don't push down timestamps with nanoseconds to Iceberg ...................................................................... IMPALA-15636: Don't push down timestamps with nanoseconds to Iceberg Iceberg timestamps have microsecond precision, and IcebergPredicateConverter rounded TIMESTAMP literals to the nearest microsecond. This changed the result of comparisons, e.g. ts < '2024-01-01 00:00:00.0000004' became ts < '2024-01-01 00:00:00', so Iceberg skipped data files where ts = '2024-01-01 00:00:00'. For identity partitions the rounded predicate also selected the wrong partitions, e.g. in ALTER TABLE DROP PARTITION. TIMESTAMP literals with sub-microsecond precision are no longer pushed down to Iceberg, and partition filters of DDL statements reject them. Rounding them depending on the operator is left for IMPALA-15709. Testing: - Added EE tests for metrics and partition transforms. Change-Id: I8b0b8c2eb4309f5e8d431752175fc656d0fcb806 Assisted-by: Claude Opus 5.5 (Claude Code) Reviewed-on: http://gerrit.cloudera.org:8080/25193 Reviewed-by: Impala Public Jenkins <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- M fe/src/main/java/org/apache/impala/analysis/TimestampLiteral.java M fe/src/main/java/org/apache/impala/common/IcebergPredicateConverter.java M testdata/workloads/functional-query/queries/QueryTest/iceberg-predicate-push-down-hint.test 3 files changed, 69 insertions(+), 0 deletions(-) Approvals: Impala Public Jenkins: Looks good to me, approved; Verified -- To view, visit http://gerrit.cloudera.org:8080/25193 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I8b0b8c2eb4309f5e8d431752175fc656d0fcb806 Gerrit-Change-Number: 25193 Gerrit-PatchSet: 4 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Daniel Vanko <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Nandor Kollar <[email protected]> Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
