Zoltan Borok-Nagy has posted comments on this change. ( 
https://gerrit.cloudera.org/23793 )

Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon 
tables.
......................................................................


Patch Set 13:

(4 comments)

https://gerrit.cloudera.org/#/c/23793/13//COMMIT_MSG
Commit Message:

https://gerrit.cloudera.org/#/c/23793/13//COMMIT_MSG@21
PS13, Line 21: decline FLOAT/DOUBLE
FLOAT/DOUBLE are pushed now (with the -0.0/NaN rewrites), and != / NOT IN only 
on partition columns. Please update.


https://gerrit.cloudera.org/#/c/23793/13/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
File fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java:

https://gerrit.cloudera.org/#/c/23793/13/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@136
PS13, Line 136:     if 
(!extractedPredicates_.getSelectivityConjuncts().isEmpty()) {
Nit: after pushdown conjuncts_ holds the same exprs as 
getSelectivityConjuncts(), so both branches and the computeSelectivity() 
override behave like PlanNode's default. Could use applyConjunctsSelectivity() 
and drop the override.


https://gerrit.cloudera.org/#/c/23793/13/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:

https://gerrit.cloudera.org/#/c/23793/13/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@879
PS13, Line 879:         // Paimon expects an Instant for TIMESTAMP WITH LOCAL 
TIME ZONE.
Impala reads LTZ values as session-local wall clock, but only one instant is 
pushed. With TZ=Europe/Budapest, '2024-10-27 02:30' is two instants and 
'2024-03-31 02:30' doesn't exist, so ts_ltz_value = '2024-10-27 02:30:00' 
prunes files/partitions holding the other instant. Please don't push when 
localTimestampToUnixTimeMicros(.., true) and (.., false) differ or are null, or 
handle it like KuduScanNode.convertLocalTimestampBinaryKuduPredicate().


https://gerrit.cloudera.org/#/c/23793/13/fe/src/main/java/org/apache/impala/planner/paimon/PaimonJniReadFilter.java
File fe/src/main/java/org/apache/impala/planner/paimon/PaimonJniReadFilter.java:

https://gerrit.cloudera.org/#/c/23793/13/fe/src/main/java/org/apache/impala/planner/paimon/PaimonJniReadFilter.java@159
PS13, Line 159:   public static PaimonJniReadFilter deserialize(ByteBuffer 
data) {
nit: unused?



--
To view, visit https://gerrit.cloudera.org/23793
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 13
Gerrit-Owner: ji chen <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Riza Suminto <[email protected]>
Gerrit-Reviewer: Steve Carlin <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
Gerrit-Reviewer: ji chen <[email protected]>
Gerrit-Comment-Date: Wed, 11 Nov 2026 18:05:11 +0000
Gerrit-HasComments: Yes

Reply via email to