You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "ji chen (Code Review)" <ge...@cloudera.org> on 2025/12/16 14:56:03 UTC
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
ji chen has uploaded this change for review. ( http://gerrit.cloudera.org:8080/23793
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
This patch mainly enable the predicate pushdown feature for paimon
table. It will analyze the filter predicates for the given paimon table,
and extract the predicates that can be pushed down to paimon.
these predicate will be applied in-advance to paimon table
to exclude unnecessary partitions,data files for the scanning.
We also introduce a query option:
PAIMON_PREDICATE_PUSHDOWN_ENABLED to turn on/off
the predicate pushdown, by default it is is enabled.
Testing:
- Add test_paimon_ppd in test_paimon.py.
Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
---
M be/src/service/query-options.cc
M be/src/service/query-options.h
M common/thrift/ImpalaService.thrift
M common/thrift/Query.thrift
M fe/src/main/java/org/apache/impala/analysis/LikePredicate.java
M fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java
A fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
A testdata/workloads/functional-query/queries/QueryTest/paimon-ppd-profile.test
M testdata/workloads/functional-query/queries/QueryTest/paimon-query.test
M tests/query_test/test_paimon.py
12 files changed, 488 insertions(+), 11 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/23793/1
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 1
Gerrit-Owner: ji chen <ji...@163.com>
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Zoltan Borok-Nagy (Code Review)" <ge...@cloudera.org>.
Zoltan Borok-Nagy has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 8:
(1 comment)
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
File fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java:
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java@241
PS8, Line 241: String.format("select * from %s where %s like 'aaa%%bbb'", TBL, col),
: PREDICATE_OP.STARTS_ENDS_WITH, "aaa", "bbb");
> Can you add test for 'aaa%bbb%ccc'? Also for 'aaa_bbb_ccc', and 'aaa_b%c_d%
Though if for 'aaa%bbb%ccc', we pushdown the followings:
* startsWith('aaa');
* endsWith('ccc');
We need to make sure that the full LIKE 'aaa%bbb%ccc' still gets evaluated by the scanners.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 8
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Mon, 23 Feb 2026 10:04:11 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 1:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/12800/ DRY_RUN=true
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 1
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Tue, 16 Dec 2025 14:56:27 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has uploaded a new patch set (#11). ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
This patch mainly enable the predicate pushdown feature for paimon
table. It will analyze the filter predicates for the given paimon table,
and extract the predicates that can be pushed down to paimon.
these predicate will be applied in-advance to paimon table
to exclude unnecessary partitions,data files for the scanning.
Remap pushed predicates to the JNI projected read schema and always
re-evaluate pushed conjuncts in Impala post-scan for correctness while
using Paimon filters for split/file pruning.
Testing:
- Add test_paimon_predicate_pushdown in test_paimon.py.
- Add testPaimonPredicate in PlannerTest.java
- Add unit test PaimonImpalaExprConverterTest.java
- All query results are same for tpcds queries against paimon table
before/after enabing paimon predicate push down.
Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
---
M be/src/exec/paimon/paimon-jni-scan-node.cc
M be/src/scheduling/scheduler.cc
M common/protobuf/planner.proto
M common/thrift/PlanNodes.thrift
M fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaPaimonRowTypeUtils.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonReadFilterBuilder.java
M fe/src/main/java/org/apache/impala/planner/paimon/PaimonSplit.java
A fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
M fe/src/main/java/org/apache/impala/util/paimon/PaimonJniScanner.java
M fe/src/test/java/org/apache/impala/planner/PlannerTest.java
A fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
A fe/src/test/java/org/apache/impala/planner/paimon/PaimonReadFilterBuilderTest.java
A testdata/workloads/functional-planner/queries/PlannerTest/paimon-predicates.test
A testdata/workloads/functional-query/queries/QueryTest/paimon-predicate-push-down.test
M tests/query_test/test_paimon.py
18 files changed, 2,533 insertions(+), 44 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/23793/11
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 11
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( https://gerrit.cloudera.org/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
Patch Set 15:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/14479/ DRY_RUN=true
--
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: 15
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Fri, 13 Nov 2026 07:29:00 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( https://gerrit.cloudera.org/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
Patch Set 15:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/24967/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
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: 15
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Fri, 13 Nov 2026 02:43:48 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 3: Verified+1
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 3
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Wed, 17 Dec 2025 19:39:32 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Riza Suminto (Code Review)" <ge...@cloudera.org>.
Riza Suminto has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 3:
(1 comment)
http://gerrit.cloudera.org:8080/#/c/23793/3//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/23793/3//COMMIT_MSG@15
PS3, Line 15: We also introduce a query option:
: PAIMON_PREDICATE_PUSHDOWN_ENABLED to turn on/off
: the predicate pushdown, by default it is is enabled.
> It is enabled by default, do you mean disable it by default?
I mean to always do predicate pushdown, no need to disable it.
Thus, you can remove PAIMON_PREDICATE_PUSHDOWN_ENABLED option.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 3
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Thu, 18 Dec 2025 15:54:36 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen 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:
(7 comments)
https://gerrit.cloudera.org/#/c/23793/12//COMMIT_MSG
Commit Message:
https://gerrit.cloudera.org/#/c/23793/12//COMMIT_MSG@16
PS12, Line 16:
> Partition predicates are removed from the conjuncts, so they are not pushed
Done
https://gerrit.cloudera.org/#/c/23793/12/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/12/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@136
PS12, Line 136: if (!extractedPredicates_.getSelectivityConjuncts().isEmpty()) {
> Nit: when pushdown doesn't apply (non-FileStoreTable) this list is empty, s
Done
https://gerrit.cloudera.org/#/c/23793/12/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@230
PS12, Line 230:
> Nit: the filters are serialized into every split, but the reader only uses
Done
https://gerrit.cloudera.org/#/c/23793/12/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/12/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@610
PS12, Line 610: String.format("Unsupported flipped operator: %s", op));
> nit: java.sql.Date uses the Julian calendar before 1582-10-15: DATE '1582-1
Done, also create related tests for this case
https://gerrit.cloudera.org/#/c/23793/12/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@640
PS12, Line 640: sb.append(c);
> Paimon compares with Float.compare(): -0.0 = 0 is false (loses rows) and Na
DONE, align the solution with https://gerrit.cloudera.org/#/c/25192/
https://gerrit.cloudera.org/#/c/23793/12/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@695
PS12, Line 695: // A wildcard run at both ends, or a gap that is not all '%', is not equivalent.
> Paimon converts the java.sql.Timestamp back to a wall clock in the JVM zone
DONE
https://gerrit.cloudera.org/#/c/23793/12/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@707
PS12, Line 707: case LIKE: {
> Sub-micro digits are truncated: ts < '2024-01-01 00:00:00.0000005' is pushe
DONE, will check the remainning nanos is zero, non-zero will stop pushing the literal.
--
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 <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Wed, 11 Nov 2026 06:36:50 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( https://gerrit.cloudera.org/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
Patch Set 15:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/14476/ DRY_RUN=true
--
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: 15
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Fri, 13 Nov 2026 02:39:26 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( https://gerrit.cloudera.org/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
Patch Set 15: Verified+1
--
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: 15
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Fri, 13 Nov 2026 12:07:58 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( https://gerrit.cloudera.org/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
Patch Set 14:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/14463/ DRY_RUN=true
--
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: 14
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Thu, 12 Nov 2026 02:05:54 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins 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:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/24915/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
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 <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Tue, 10 Nov 2026 09:16:06 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 8:
(3 comments)
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@67
PS8, Line 67: private static final Pattern LIKE_STARTS_OR_ENDS_WITH_PATTERN =
: Pattern.compile("([^%_]*)(?:%+)([^%_]*)");
: private static final Pattern LIKE_ENDSWITH_PATTER = Pattern.compile("(?:%+)([^%_]*)");
: private static final Pattern LIKE_STARTS_WITH_PATTERN =
: Pattern.compile("([^%_]*)(?:%+)");
: private static final Pattern LIKE_EQUALS_PATTERN = Pattern.compile("([^%_]*)");
: private static final Pattern LIKE_ENDS_WITH_ESCAPED_WILDCARD_PATTERN =
: Pattern.compile(".*\\\\%$");
> Instead of all these regexes, I think it would be cleaner to write custom c
ok, will use this for cleaner code.
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
File fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java:
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java@241
PS8, Line 241: String.format("select * from %s where %s like 'aaa%%bbb'", TBL, col),
: PREDICATE_OP.STARTS_ENDS_WITH, "aaa", "bbb");
> Though if for 'aaa%bbb%ccc', we pushdown the followings:
sorry for the late reponse, I was working on a very challenging poc, working from day to night, will update code recently.
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java@281
PS8, Line 281: checkAcceptableLikeExpr(
: String.format("select * from %s where %s like 'a\\\\%%b'", TBL, col),
: PREDICATE_OP.STARTS_ENDS_WITH, "a\\\\", "b");
> I think the results of these should be verified by e2e tests on actual data
ok, will be revised in the next version.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 8
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sun, 15 Mar 2026 06:50:26 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Zoltan Borok-Nagy (Code Review)" <ge...@cloudera.org>.
Zoltan Borok-Nagy has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 3:
(12 comments)
Thanks for working on this!
http://gerrit.cloudera.org:8080/#/c/23793/3//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/23793/3//COMMIT_MSG@15
PS3, Line 15: We also introduce a query option:
: PAIMON_PREDICATE_PUSHDOWN_ENABLED to turn on/off
: the predicate pushdown, by default it is is enabled.
Sorry, I might have misunderstood things a bit. What I really meant is that we should have a separate query option for Paimon if we want to make predicate pushdown switchable.
But I'm also OK with not having the flag if we are confident enough in the implementation.
> keep the option to avoid wrong pushdown result for some corner case.
Do we know about any such corner case?
http://gerrit.cloudera.org:8080/#/c/23793/3//COMMIT_MSG@18
PS3, Line 18:
Do you have any measurements to share here?
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
File fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java:
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@89
PS3, Line 89:
nit: extra space compared to the comments above
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@127
PS3, Line 127: // in predicateExtractor.
nit: fits line above
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@120
PS3, Line 120: case EQ: return builder.equal(index, literal_value);
: case NE: return builder.notEqual(index, literal_value);
: case GT: return builder.greaterThan(index, literal_value);
: case GE: return builder.greaterOrEqual(index, literal_value);
: case LT: return builder.lessThan(index, literal_value);
: case LE: return builder.lessOrEqual(index, literal_value);
:
: case NULL_MATCHING_EQ:
: if (literal_value == null) {
: return builder.isNull(index);
: } else {
: return builder.equal(index, literal_value);
: }
: case DISTINCT_FROM:
: case NOT_DISTINCT:
: // can't push down,ignore
: break;
Can we have tests with all thes predicates, and using NULL values as well?
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java
File fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java:
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java@31
PS3, Line 31: */
nit: should be moved to next line
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java@46
PS3, Line 46: for (Predicate child : predicate.children()) {
: Boolean matched = (Boolean) child.visit(this);
: if (!matched) { return false; }
: }
:
: return true;
So all child predicate needs to refer partition keys. I think it'd good to have a comment about this method, explaining the semantics.
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
File fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java:
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java@41
PS3, Line 41: // Predicates/Exprs can be pushed down to paimon table
I think it's worth to call out that pushed predicates/exprs are supersets of partition predicates/exprs.
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java@45
PS3, Line 45:
nit: extra space
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java@57
PS3, Line 57: _
nit: no need for the ending '_' for methods. Applies to the below methods as well.
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java@68
PS3, Line 68: returns exprs
nit: This method doesn't return any objects.
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java@88
PS3, Line 88: pushable.add(predicatePair);
: if (predicate.visit(partitionVisitor)) {
: partitionExpr.add(predicatePair);
: } else {
: postScan.add(expr);
: }
: }
: }
:
: if (!pushable.isEmpty()) {
: this.pushedPredicates_ = getPredicates(pushable);
: this.pushedExprs_ = getExpr(pushable);
: }
: if (!partitionExpr.isEmpty()) {
: this.partitionPredicates_ = getPredicates(partitionExpr);
: this.partitionExprs_ = getExpr(partitionExpr);
: }
: if (!postScan.isEmpty()) { this.postScanExprs_ = postScan; }
: }
:
: public static List<Predicate> getPredicates(List<Pair> list) {
: return list.stream().map(p -> (Predicate) p.getSecond()).collect(Collectors.toList());
: }
:
: public static List<Expr> getExpr(List<Pair> list) {
: return list.stream().map(p -> (Expr) p.first).collect(Collectors.toList());
: }
Wouldn't it be shorter to just add expr/predicate directly to pushedPredicate/Expr, partitionPredicate/Expr, and postScanExprs?
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 3
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Fri, 19 Dec 2025 16:32:35 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has uploaded a new patch set (#4). ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
This patch mainly enable the predicate pushdown feature for paimon
table. It will analyze the filter predicates for the given paimon table,
and extract the predicates that can be pushed down to paimon.
these predicate will be applied in-advance to paimon table
to exclude unnecessary partitions,data files for the scanning.
We also introduce a query option:
PAIMON_PREDICATE_PUSHDOWN_ENABLED to turn on/off
the predicate pushdown, by default it is is enabled.
Testing:
- Add test_paimon_ppd in test_paimon.py.
- Add testPaimonPredicate in PlannerTest.java
- Add unit test PaimonImpalaExprConverterTest.java
Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
---
M be/src/service/query-options.cc
M be/src/service/query-options.h
M common/thrift/ImpalaService.thrift
M common/thrift/Query.thrift
M fe/src/main/java/org/apache/impala/analysis/LikePredicate.java
M fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java
A fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
M fe/src/test/java/org/apache/impala/planner/PlannerTest.java
A fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
A testdata/workloads/functional-planner/queries/PlannerTest/paimon-predicates-disabled.test
A testdata/workloads/functional-planner/queries/PlannerTest/paimon-predicates.test
A testdata/workloads/functional-query/queries/QueryTest/paimon-ppd-profile.test
M testdata/workloads/functional-query/queries/QueryTest/paimon-query.test
M tests/query_test/test_paimon.py
16 files changed, 905 insertions(+), 14 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/23793/4
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 4
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has uploaded a new patch set (#10). ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
This patch mainly enable the predicate pushdown feature for paimon
table. It will analyze the filter predicates for the given paimon table,
and extract the predicates that can be pushed down to paimon.
these predicate will be applied in-advance to paimon table
to exclude unnecessary partitions,data files for the scanning.
Testing:
- Add test_paimon_predicate_pushdown in test_paimon.py.
- Add testPaimonPredicate in PlannerTest.java
- Add unit test PaimonImpalaExprConverterTest.java
Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
---
M be/src/exec/paimon/paimon-jni-scan-node.cc
M be/src/scheduling/scheduler.cc
M common/protobuf/planner.proto
M common/thrift/PlanNodes.thrift
M fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java
A fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
M fe/src/test/java/org/apache/impala/planner/PlannerTest.java
A fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
A testdata/workloads/functional-planner/queries/PlannerTest/paimon-predicates.test
A testdata/workloads/functional-query/queries/QueryTest/paimon-predicate-push-down.test
M tests/query_test/test_paimon.py
13 files changed, 1,369 insertions(+), 16 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/23793/10
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 10
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 10: Verified+1
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 10
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Mon, 05 Oct 2026 14:24:07 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has uploaded a new patch set (#13). ( https://gerrit.cloudera.org/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Push conjuncts to Paimon as partition filters and data filters.
Partition-only predicates that map exactly onto partition keys are
used for pruning and are not re-checked after the scan. Data filters
and predicates that are not exact at the partition layer (including
LIKE/REGEXP) stay in Impala conjuncts for post-scan evaluation and
selectivity; Paimon still applies them for file/data pruning where
supported.
Serialize partition and data predicates once per scan as
PaimonJniReadFilter on TPaimonScanNode and TPaimonJniScanParam;
PaimonSplit carries only the split. JNI must not remap data filters
to the projected schema (Paimon projects them). Fix DATE/TIMESTAMP
literals, reject sub-microsecond timestamps, and decline FLOAT/DOUBLE
column pushdown. Restore scan selectivity when pushdown does not apply.
Testing:
- PaimonJniReadFilterTest and PaimonImpalaExprConverterTest
- test_paimon_predicate_pushdown and PlannerTest Paimon cases
Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Assisted-by: Composer (Cursor)
---
M be/src/exec/paimon/paimon-jni-scan-node.cc
M be/src/scheduling/scheduler.cc
M common/protobuf/planner.proto
M common/thrift/PlanNodes.thrift
M fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaPaimonRowTypeUtils.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonJniReadFilter.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java
M fe/src/main/java/org/apache/impala/planner/paimon/PaimonSplit.java
A fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
M fe/src/main/java/org/apache/impala/util/paimon/PaimonJniScanner.java
M fe/src/test/java/org/apache/impala/planner/PlannerTest.java
A fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
A fe/src/test/java/org/apache/impala/planner/paimon/PaimonJniReadFilterTest.java
A testdata/workloads/functional-planner/queries/PlannerTest/paimon-predicates.test
A testdata/workloads/functional-query/queries/QueryTest/paimon-predicate-push-down.test
M tests/query_test/test_paimon.py
18 files changed, 3,223 insertions(+), 48 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/23793/13
--
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: newpatchset
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 13
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
Patch Set 11:
Build Failed
https://jenkins.impala.io/job/gerrit-code-review-checks/24669/ : Initial code review checks failed. See linked job for details on the failure.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 11
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sun, 25 Oct 2026 12:54:36 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 3:
(6 comments)
http://gerrit.cloudera.org:8080/#/c/23793/3//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/23793/3//COMMIT_MSG@15
PS3, Line 15: We also introduce a query option:
: PAIMON_PREDICATE_PUSHDOWN_ENABLED to turn on/off
: the predicate pushdown, by default it is is enabled.
> Since we have not officially support Paimon, can we make predicate push dow
It is enabled by default, do you mean disable it by default?
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
File fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java:
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@107
PS3, Line 107: applyPaimonPredicatePushDownIfAvailable(analyzer);
> This is happen before or after expression rewrite?
I checked some complex sql, I think it is after expression rewrite.
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@316
PS3, Line 316: if (!predicateExtractor.getPushedPredicates_().isEmpty()) {
: result.append(detailPrefix + "paimon predicates: "
: + Expr.getExplainString(predicateExtractor.getPushedExprs_(), detailLevel)
: + "\n");
: }
: if (!predicateExtractor.getPartitionPredicates_().isEmpty()) {
: result.append(detailPrefix + "paimon partition predicates: "
: + Expr.getExplainString(
: predicateExtractor.getPartitionExprs_(), detailLevel)
: + "\n");
: }
> Add FE/Planner tests to show these new lines.
Done
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@60
PS3, Line 60: public static final List<String> SUPPORT_FILTERS = Arrays.asList("=", "EqualNullSafe",
: ">", ">=", "<", ">=", "In", "IsNull", "IsNotNull", "And", "Or", "Not");
> Looks like this can be private.
Done
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@222
PS3, Line 222: yyyy-MM-dd HH:mm:ss.SSSSSS
> Paimon does not support nanoseconds?
It is supported, will cover the nanoseconds case.
http://gerrit.cloudera.org:8080/#/c/23793/3/tests/query_test/test_paimon.py
File tests/query_test/test_paimon.py:
http://gerrit.cloudera.org:8080/#/c/23793/3/tests/query_test/test_paimon.py@60
PS3, Line 60: unique_database
> I think you can drop unique_database since paimon-ppd-profile.test does not
Done
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 3
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Thu, 18 Dec 2025 12:49:01 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 3:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/21194/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 3
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Wed, 17 Dec 2025 09:20:56 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 1: Verified-1
Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/12800/
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 1
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Tue, 16 Dec 2025 19:50:42 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 2: Verified-1
Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/12803/
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 2
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Wed, 17 Dec 2025 07:01:52 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 4:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/21241/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 4
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sun, 28 Dec 2025 15:40:13 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 9: Verified-1
Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/14196/
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 9
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Mon, 05 Oct 2026 07:20:46 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Zoltan Borok-Nagy (Code Review)" <ge...@cloudera.org>.
Zoltan Borok-Nagy has submitted this change and it was merged. ( https://gerrit.cloudera.org/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Push conjuncts to Paimon as partition filters and data filters.
Partition-only predicates that map exactly onto partition keys are
used for pruning and are not re-checked after the scan. Data filters
and predicates that are not exact at the partition layer (including
LIKE/REGEXP) stay in Impala conjuncts for post-scan evaluation and
selectivity; Paimon still applies them for file/data pruning where
supported.
Serialize partition and data predicates once per scan as
PaimonJniReadFilter on TPaimonScanNode and TPaimonJniScanParam;
PaimonSplit carries only the split. JNI must not remap data filters
to the projected schema (Paimon projects them). Fix DATE/TIMESTAMP
literals, reject sub-microsecond timestamps, and skip ambiguous or
invalid TIMESTAMP WITH LOCAL TIME ZONE literals. Push FLOAT/DOUBLE with
Impala/Paimon semantic alignment (-0.0, NaN); restrict float != and
NOT IN to partition filters only.
Testing:
- PaimonJniReadFilterTest and PaimonImpalaExprConverterTest
- test_paimon_predicate_pushdown and PlannerTest Paimon cases
Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Assisted-by: Composer (Cursor)
Reviewed-on: https://gerrit.cloudera.org/23793
Tested-by: Impala Public Jenkins <im...@cloudera.com>
Reviewed-by: Zoltan Borok-Nagy <bo...@cloudera.com>
---
M be/src/exec/paimon/paimon-jni-scan-node.cc
M be/src/scheduling/scheduler.cc
M common/protobuf/planner.proto
M common/thrift/PlanNodes.thrift
M fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaPaimonRowTypeUtils.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonJniReadFilter.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java
M fe/src/main/java/org/apache/impala/planner/paimon/PaimonSplit.java
A fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
M fe/src/main/java/org/apache/impala/util/paimon/PaimonJniScanner.java
M fe/src/test/java/org/apache/impala/planner/PlannerTest.java
A fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
A fe/src/test/java/org/apache/impala/planner/paimon/PaimonJniReadFilterTest.java
A testdata/workloads/functional-planner/queries/PlannerTest/paimon-predicates.test
A testdata/workloads/functional-query/queries/QueryTest/paimon-predicate-push-down.test
M tests/query_test/test_paimon.py
18 files changed, 3,261 insertions(+), 48 deletions(-)
Approvals:
Impala Public Jenkins: Verified
Zoltan Borok-Nagy: Looks good to me, approved
--
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: merged
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 16
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 5:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/12996/ DRY_RUN=true
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 5
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sat, 24 Jan 2026 11:59:28 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has uploaded a new patch set (#7). ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
This patch mainly enable the predicate pushdown feature for paimon
table. It will analyze the filter predicates for the given paimon table,
and extract the predicates that can be pushed down to paimon.
these predicate will be applied in-advance to paimon table
to exclude unnecessary partitions,data files for the scanning.
We also introduce a query option:
PAIMON_PREDICATE_PUSHDOWN_ENABLED to turn on/off
the predicate pushdown, by default it is is enabled.
Testing:
- Add test_paimon_predicate_pushdown in test_paimon.py.
- Add testPaimonPredicate in PlannerTest.java
- Add unit test PaimonImpalaExprConverterTest.java
Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
---
M be/src/exec/paimon/paimon-jni-scan-node.cc
M be/src/scheduling/scheduler.cc
M common/protobuf/planner.proto
M common/thrift/PlanNodes.thrift
M fe/src/main/java/org/apache/impala/analysis/LikePredicate.java
M fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java
A fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
M fe/src/test/java/org/apache/impala/planner/PlannerTest.java
A fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
A testdata/workloads/functional-planner/queries/PlannerTest/paimon-predicates.test
A testdata/workloads/functional-query/queries/QueryTest/paimon-predicate-push-down.test
M tests/query_test/test_paimon.py
14 files changed, 868 insertions(+), 17 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/23793/7
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 7
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 4:
(12 comments)
http://gerrit.cloudera.org:8080/#/c/23793/3//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/23793/3//COMMIT_MSG@15
PS3, Line 15: We also introduce a query option:
: PAIMON_PREDICATE_PUSHDOWN_ENABLED to turn on/off
: the predicate pushdown, by default it is is enabled.
> Sorry, I might have misunderstood things a bit. What I really meant is that
No currently.
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
File fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java:
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@89
PS3, Line 89: P
> nit: extra space compared to the comments above
Done
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@127
PS3, Line 127: protected void applyPaimo
> nit: fits line above
Done
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@58
PS3, Line 58: import java.sql.Timestamp;
: import java.time.LocalDateTime;
> Can you create FE test to test all public methods in ImpalaExprConverter?
Done
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@120
PS3, Line 120: } else if (filter instanceof BinaryPredicate) {
: BinaryPredicate binaryPredicate = (BinaryPredicate) filter;
: SlotRef attribute;
: LiteralExpr literal;
: if (binaryPredicate.getChild(1) instanceof LiteralExpr) {
: literal = (LiteralExpr) binaryPredicate.getChild(1);
: attribute = extractSlotRef(binaryPredicate.getChild(0));
: } else {
: literal = (LiteralExpr) binaryPredicate.getChild(0);
: attribute = extractSlotRef(binaryPredicate.getChild(1));
: }
: String field = attribute.getResolvedPath().destColumn().getName();
: int index = fieldIndex(field);
: Object literal_value = convertLiteral(index, literal);
: switch (binaryPredicate.getOp()) {
: case EQ:
: return
> Can we have tests with all thes predicates, and using NULL values as well?
Done
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java
File fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java:
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java@31
PS3, Line 31:
> nit: should be moved to next line
Done
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java@46
PS3, Line 46: * This function will check whether the given predicate is partition-only predicate
: * expression, if yes, the partition predicate will not be added to the postscan
: * expressions to reduce filter cost. It assumed that all partition-only predicate
: * can accurately filter out partitions by the given partition-only predicate.
: * */
: public Boolean
> So all child predicate needs to refer partition keys. I think it'd good to
Done
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
File fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java:
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java@41
PS3, Line 41: // Predicates/Exprs can be pushed down to paimon table
> I think it's worth to call out that pushed predicates/exprs are supersets o
Done
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java@45
PS3, Line 45:
> nit: extra space
Done
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java@57
PS3, Line 57:
> nit: no need for the ending '_' for methods. Applies to the below methods a
Done
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java@68
PS3, Line 68:
> nit: This method doesn't return any objects.
Done
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java@88
PS3, Line 88: partitionExprs_.add(expr);
: } else {
: postScanExprs_.add(expr);
: }
: }
: }
: }
:
: public static List<Predicate> getPredicates(List<Pair> list) {
: return list.stream().map(p -> (Predicate) p.getSecond()).collect(Collectors.toList());
: }
:
: public static List<Expr> getExpr(List<Pair> list) {
: return list.stream().map(p -> (Expr) p.first).collect(Collectors.toList());
: }
: }
:
:
:
:
:
:
:
:
:
:
:
> Wouldn't it be shorter to just add expr/predicate directly to pushedPredica
Done
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 4
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sun, 28 Dec 2025 15:16:03 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has uploaded a new patch set (#9). ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
This patch mainly enable the predicate pushdown feature for paimon
table. It will analyze the filter predicates for the given paimon table,
and extract the predicates that can be pushed down to paimon.
these predicate will be applied in-advance to paimon table
to exclude unnecessary partitions,data files for the scanning.
We also introduce a query option:
PAIMON_PREDICATE_PUSHDOWN_ENABLED to turn on/off
the predicate pushdown, by default it is is enabled.
Testing:
- Add test_paimon_predicate_pushdown in test_paimon.py.
- Add testPaimonPredicate in PlannerTest.java
- Add unit test PaimonImpalaExprConverterTest.java
Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
---
M be/src/exec/paimon/paimon-jni-scan-node.cc
M be/src/scheduling/scheduler.cc
M common/protobuf/planner.proto
M common/thrift/PlanNodes.thrift
M fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java
A fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
M fe/src/test/java/org/apache/impala/planner/PlannerTest.java
A fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
A testdata/workloads/functional-planner/queries/PlannerTest/paimon-predicates.test
A testdata/workloads/functional-query/queries/QueryTest/paimon-predicate-push-down.test
M tests/query_test/test_paimon.py
13 files changed, 1,367 insertions(+), 16 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/23793/9
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 9
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 9:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/14196/ DRY_RUN=true
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 9
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Mon, 05 Oct 2026 02:37:42 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 10:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/24323/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 10
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Mon, 05 Oct 2026 10:18:59 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Zoltan Borok-Nagy (Code Review)" <ge...@cloudera.org>.
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 <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Wed, 11 Nov 2026 18:05:11 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Zoltan Borok-Nagy (Code Review)" <ge...@cloudera.org>.
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 14: Code-Review+1
(1 comment)
One small nit, otherwise LGTM!
https://gerrit.cloudera.org/#/c/23793/14//COMMIT_MSG
Commit Message:
https://gerrit.cloudera.org/#/c/23793/14//COMMIT_MSG@32
PS14, Line 32: Co-authored-by: Cursor <cu...@cursor.com>
Please drop the Co-authored-by trailer. AGENTS.md: commit messages must not include Co-Authored-By; Assisted-by: is enough.
--
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: 14
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Thu, 12 Nov 2026 15:32:59 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 1:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/21183/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 1
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Tue, 16 Dec 2025 15:23:36 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 3:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/12805/ DRY_RUN=true
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 3
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Wed, 17 Dec 2025 08:58:15 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 3: Verified-1
Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/12805/
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 3
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Wed, 17 Dec 2025 13:58:23 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 6:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/21487/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 6
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sun, 25 Jan 2026 06:56:14 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 6:
(18 comments)
http://gerrit.cloudera.org:8080/#/c/23793/4/common/thrift/ImpalaService.thrift
File common/thrift/ImpalaService.thrift:
http://gerrit.cloudera.org:8080/#/c/23793/4/common/thrift/ImpalaService.thrift@1077
PS4, Line 1077:
: // The summary of a DML statement.
: struct TDmlResult {
> I still think this query option is not necessary, and Paimon scanner should
sure, will remove the query option
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
File fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java:
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@118
PS4, Line 118: // push down only applies to paimon data table.
> nit: I don't think we need these trivial comments here
Done
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@121
PS4, Line 121:
> nit: for single-line if statements we don't need the curly brackets. Should
Done
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@201
PS4, Line 201:
> Do we need to check this? predicateExtractor.getPushedPredicates() should a
thanks, you are right.will remove
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@231
PS4, Line 231: cations(location
> Instead of hijacking 'file_metadata', we should add another member to TScan
Done
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@74
PS4, Line 74:
> Should we add "!=" as well?
Done
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@118
PS4, Line 118: onditi
> At this point it would be more informational to throw an error like "Negati
Done
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@124
PS4, Line 124: case EQ:
: return literal_value != null ? builder.equal(index, literal_value) :
: builder.isNull(index);
: case NE:
: return literal_value != null ? builder.notEqual(index, literal_value) :
: builder.isNotNull(index);
:
> IIRC we normalize predicates to always have literals on the right side, but
Done
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@131
PS4, Line 131: case GE: return builder.greaterOrEqual(index, literal_value);
: case LT: return builder.less
> This repeats multiple times, could be moved to a helper method. Probably ex
Done
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@192
PS4, Line 192: upportedOperationException(
> lenth is greater than 1, and indexOf("%") returned the index of the last ch
Done
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@193
PS4, Line 193: is unsup
> typo: candidate
Done
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@207
PS4, Line 207:
> nit: Supported
Done
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@274
PS4, Line 274:
> Can't you just use Expr.unwrapSlotRef()?
Done
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
File fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java:
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java@90
PS4, Line 90: postScanExprs_.add(expr);
> Isn't it enough to add 'expr' to pushedExprs? Don't we evaluate these twice
Paimon partition design is similar to hive, it does't have partition specs like iceberg. so for partition level predicates, I think it it enough to evaluate only in java paimon scanner. Impala c++ scanner is not necessary, please let me know If I'm wrong,thanks.
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java@96
PS4, Line 96:
:
:
:
:
:
:
> They are now unused, right?
No,they are not used, will remove.
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
File fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java:
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java@107
PS4, Line 107: %s < 1
> You could add tests where literal is on the left side.
Done
http://gerrit.cloudera.org:8080/#/c/23793/4/tests/query_test/test_paimon.py
File tests/query_test/test_paimon.py:
http://gerrit.cloudera.org:8080/#/c/23793/4/tests/query_test/test_paimon.py@60
PS4, Line 60: test_paimon_pre
> Spell this out: test_paimon_predicate_push_down
Done
http://gerrit.cloudera.org:8080/#/c/23793/4/tests/query_test/test_paimon.py@61
PS4, Line 61: paimon-predicate-p
> Spell this out: paimon-predicate-push-down
Done
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 6
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sun, 25 Jan 2026 14:42:58 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 6: Verified+1
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 6
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sun, 25 Jan 2026 11:25:29 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Zoltan Borok-Nagy (Code Review)" <ge...@cloudera.org>.
Zoltan Borok-Nagy has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 8:
(9 comments)
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@67
PS8, Line 67: private static final Pattern LIKE_STARTS_OR_ENDS_WITH_PATTERN =
: Pattern.compile("([^%_]*)(?:%+)([^%_]*)");
: private static final Pattern LIKE_ENDSWITH_PATTER = Pattern.compile("(?:%+)([^%_]*)");
: private static final Pattern LIKE_STARTS_WITH_PATTERN =
: Pattern.compile("([^%_]*)(?:%+)");
: private static final Pattern LIKE_EQUALS_PATTERN = Pattern.compile("([^%_]*)");
: private static final Pattern LIKE_ENDS_WITH_ESCAPED_WILDCARD_PATTERN =
: Pattern.compile(".*\\\\%$");
Instead of all these regexes, I think it would be cleaner to write custom code that finds the first and last non-escaped wildcards, e.g.:
int first = -1;
int last = -1;
boolean isEscaped = false;
for (int i = 0; i < input.length(); i++) {
char c = input.charAt(i);
if (isEscaped) {
// Previous character was escape, ignore this character.
isEscaped = false;
continue;
}
if (c == '\\') {
// Activate the escape flag for the next character
isEscaped = true;
continue;
}
if (c == '%' || c == '_') {
if (first == -1) first = i;
last = i;
}
}
Then if first==-1 and last==-1, then it is an equal match.
Otherwise:
if (first > 0) {
builder_.startsWith(...)
}
if (last != -1 && last != input.length() - 1) {
builder_.endsWith(...)
}
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
File fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java:
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java@216
PS8, Line 216: checkAcceptableLikeExpr(
: String.format("select * from %s where %s regexp '^a.*'", TBL, col),
Can you add test for '^a*b'?
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java@241
PS8, Line 241: String.format("select * from %s where %s like 'aaa%%bbb'", TBL, col),
: PREDICATE_OP.STARTS_ENDS_WITH, "aaa", "bbb");
Can you add test for 'aaa%bbb%ccc'? Also for 'aaa_bbb_ccc', and 'aaa_b%c_d%e_f'?
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java@267
PS8, Line 267: checkUnAcceptableExpr(
: String.format("select * from %s where %s rlike '^a.*.*b$'", TBL, col));
Should be PREDICATE_OP.STARTS_ENDS_WITH, "a", "b"
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java@272
PS8, Line 272: checkUnAcceptableExpr(
: String.format("select * from %s where %s like 'a_b'", TBL, col));
I think this should be PREDICATE_OP.STARTS_ENDS_WITH, "a", "b"
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java@274
PS8, Line 274: checkUnAcceptableExpr(
: String.format("select * from %s where %s like 'a_%%'", TBL, col));
This should be PREDICATE_OP.STARTS_WITH, "a"
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java@276
PS8, Line 276: checkUnAcceptableExpr(
: String.format("select * from %s where %s like '%%_a'", TBL, col));
This should be PREDICATE_OP.ENDS_WITH, "a"
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java@278
PS8, Line 278: checkUnAcceptableExpr(
: String.format("select * from %s where %s like 'a_%%b'", TBL, col));
This should be PREDICATE_OP.STARTS_ENDS_WITH, "a", "b"
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java@281
PS8, Line 281: checkAcceptableLikeExpr(
: String.format("select * from %s where %s like 'a\\\\%%b'", TBL, col),
: PREDICATE_OP.STARTS_ENDS_WITH, "a\\\\", "b");
I think the results of these should be verified by e2e tests on actual data.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 8
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Fri, 20 Feb 2026 16:32:14 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 8:
(2 comments)
http://gerrit.cloudera.org:8080/#/c/23793/7/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/7/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@176
PS7, Line 176: SlotRef attribute = extractSlotRef(isNullPredicate.getChild(0));
: int index = getAttributeFieldIndex(attribute);
: if (!isNullPredicate.isNotNull()) {
: return builder_.isNull(index);
: } else
> Even if we have string_col LIKE 'asdf%xyz', we could push down startsWith(i
Done
http://gerrit.cloudera.org:8080/#/c/23793/7/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@182
PS7, Line 182: }
: } else if (filter instanceof InPredicate) {
: InPredicate in = (InPredicate) filter;
: SlotRef
> Even if we have string_col LIKE 'asdf%xyz', we could push down endsWith(ind
Thank you, have updated the implementation,the new implementation support 'asdf%xyz' pattern, and also support REGEXP/RLIKE, by using regular expressions matching for replace original implementation.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 8
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Thu, 19 Feb 2026 00:56:00 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 10:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/14197/ DRY_RUN=true
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 10
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Mon, 05 Oct 2026 09:58:28 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Zoltan Borok-Nagy (Code Review)" <ge...@cloudera.org>.
Zoltan Borok-Nagy has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 7:
(3 comments)
http://gerrit.cloudera.org:8080/#/c/23793/7/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/7/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@176
PS7, Line 176: if (literal_value.indexOf("%") == literal_value.length() - 1) {
: String candidate = literal_value.substring(0, literal_value.length() - 1);
: if (!candidate.isEmpty()) {
: return builder.startsWith(index, BinaryString.fromString(candidate));
: }
Even if we have string_col LIKE 'asdf%xyz', we could push down startsWith(index, BinaryString.fromString("asdf"));
Same goes for underscore _, i.e. we could just always push down the non-wildcard prefix of the string.
http://gerrit.cloudera.org:8080/#/c/23793/7/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@182
PS7, Line 182: String candidate = literal_value.substring(1);
: if (!candidate.isEmpty()) {
: return builder.endsWith(index, BinaryString.fromString(candidate));
: }
Even if we have string_col LIKE 'asdf%xyz', we could push down endsWith(index, BinaryString.fromString("xyz"));
Moreover, we could push down both:
* startsWith(index, BinaryString.fromString("asdf"));
* endsWith(index, BinaryString.fromString("xyz"));
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
File fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java:
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java@90
PS4, Line 90: prs.isEmpty()) { return n
> the exprs in pushedExprs_ includes expressions can be pushed down to Java P
Thanks for the explanation! I think the current code is fine!
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 7
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Wed, 11 Feb 2026 16:56:27 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 6:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/12998/ DRY_RUN=true
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 6
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sun, 25 Jan 2026 05:48:04 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Steve Carlin (Code Review)" <ge...@cloudera.org>.
Steve Carlin has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 6:
(2 comments)
Started on this. Looks good, haven't reviewed everything yet, but I haven't seen anything stopping me from giving this a +1. I do want to understand it a bit more before I can do that though, but it's getting late here in California
http://gerrit.cloudera.org:8080/#/c/23793/6/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
File fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java:
http://gerrit.cloudera.org:8080/#/c/23793/6/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@119
PS6, Line 119: if (!PaimonUtil.canApplyPredicatePushDown(paimonApiTable_)) return false;
nit: can we simplify this to just
return PaimonUtil.canApplyPredicatePushDown(paimonApiTable_);
?
http://gerrit.cloudera.org:8080/#/c/23793/6/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
File fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java:
http://gerrit.cloudera.org:8080/#/c/23793/6/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java@40
PS6, Line 40: public class PredicateExtractor {
style nit:
I'm a big fan of having all members as "final".
I'm ok with this since it's a small class, but an alternative would be:
- name the class ExtractedPredicates
- make extractPaimonPredicates a static method that returns an ExtractedPredicates
- keep the Lists local within extractPaimonPredicates
- Have a private ExtractedPredicates constructor which takes the lists from the static method.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 6
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Tue, 27 Jan 2026 04:42:01 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 3:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/12806/ DRY_RUN=true
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 3
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Wed, 17 Dec 2025 14:44:34 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 9:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/24316/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 9
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Mon, 05 Oct 2026 03:08:39 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
Patch Set 12:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/14319/ DRY_RUN=true
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 12
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sun, 25 Oct 2026 12:46:51 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
Patch Set 11: Verified+1
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 11
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sun, 25 Oct 2026 17:39:23 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
Patch Set 11:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/14318/ DRY_RUN=true
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 11
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sun, 25 Oct 2026 12:03:06 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Zoltan Borok-Nagy (Code Review)" <ge...@cloudera.org>.
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 15: Code-Review+2
LGTM!
--
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: 15
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Fri, 13 Nov 2026 12:11:06 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Riza Suminto (Code Review)" <ge...@cloudera.org>.
Riza Suminto has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 3:
(6 comments)
http://gerrit.cloudera.org:8080/#/c/23793/3//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/23793/3//COMMIT_MSG@15
PS3, Line 15: We also introduce a query option:
: PAIMON_PREDICATE_PUSHDOWN_ENABLED to turn on/off
: the predicate pushdown, by default it is is enabled.
Since we have not officially support Paimon, can we make predicate push down enabled by default?
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
File fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java:
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@107
PS3, Line 107: applyPaimonPredicatePushDownIfAvailable(analyzer);
This is happen before or after expression rewrite?
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@316
PS3, Line 316: if (!predicateExtractor.getPushedPredicates_().isEmpty()) {
: result.append(detailPrefix + "paimon predicates: "
: + Expr.getExplainString(predicateExtractor.getPushedExprs_(), detailLevel)
: + "\n");
: }
: if (!predicateExtractor.getPartitionPredicates_().isEmpty()) {
: result.append(detailPrefix + "paimon partition predicates: "
: + Expr.getExplainString(
: predicateExtractor.getPartitionExprs_(), detailLevel)
: + "\n");
: }
Add FE/Planner tests to show these new lines.
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@60
PS3, Line 60: public static final List<String> SUPPORT_FILTERS = Arrays.asList("=", "EqualNullSafe",
: ">", ">=", "<", ">=", "In", "IsNull", "IsNotNull", "And", "Or", "Not");
Looks like this can be private.
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@222
PS3, Line 222: yyyy-MM-dd HH:mm:ss.SSSSSS
Paimon does not support nanoseconds?
http://gerrit.cloudera.org:8080/#/c/23793/3/tests/query_test/test_paimon.py
File tests/query_test/test_paimon.py:
http://gerrit.cloudera.org:8080/#/c/23793/3/tests/query_test/test_paimon.py@60
PS3, Line 60: unique_database
I think you can drop unique_database since paimon-ppd-profile.test does not create any new table.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 3
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Thu, 18 Dec 2025 01:42:15 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 2:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/12803/ DRY_RUN=true
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 2
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Wed, 17 Dec 2025 01:58:45 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has uploaded a new patch set (#3). ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
This patch mainly enable the predicate pushdown feature for paimon
table. It will analyze the filter predicates for the given paimon table,
and extract the predicates that can be pushed down to paimon.
these predicate will be applied in-advance to paimon table
to exclude unnecessary partitions,data files for the scanning.
We also introduce a query option:
PAIMON_PREDICATE_PUSHDOWN_ENABLED to turn on/off
the predicate pushdown, by default it is is enabled.
Testing:
- Add test_paimon_ppd in test_paimon.py.
Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
---
M be/src/service/query-options.cc
M be/src/service/query-options.h
M common/thrift/ImpalaService.thrift
M common/thrift/Query.thrift
M fe/src/main/java/org/apache/impala/analysis/LikePredicate.java
M fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java
A fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
A testdata/workloads/functional-query/queries/QueryTest/paimon-ppd-profile.test
M testdata/workloads/functional-query/queries/QueryTest/paimon-query.test
M tests/query_test/test_paimon.py
12 files changed, 488 insertions(+), 11 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/23793/3
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 3
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 7:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/21615/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 7
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Tue, 10 Feb 2026 15:29:17 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 8: Verified+1
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 8
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Wed, 18 Feb 2026 19:26:01 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has uploaded a new patch set (#5). ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
This patch mainly enable the predicate pushdown feature for paimon
table. It will analyze the filter predicates for the given paimon table,
and extract the predicates that can be pushed down to paimon.
these predicate will be applied in-advance to paimon table
to exclude unnecessary partitions,data files for the scanning.
We also introduce a query option:
PAIMON_PREDICATE_PUSHDOWN_ENABLED to turn on/off
the predicate pushdown, by default it is is enabled.
Testing:
- Add test_paimon_predicate_pushdown in test_paimon.py.
- Add testPaimonPredicate in PlannerTest.java
- Add unit test PaimonImpalaExprConverterTest.java
Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
---
M be/src/exec/paimon/paimon-jni-scan-node.cc
M be/src/scheduling/scheduler.cc
M common/protobuf/planner.proto
M common/thrift/PlanNodes.thrift
M fe/src/main/java/org/apache/impala/analysis/LikePredicate.java
M fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java
A fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
M fe/src/test/java/org/apache/impala/planner/PlannerTest.java
A fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
A testdata/workloads/functional-planner/queries/PlannerTest/paimon-predicates.test
A testdata/workloads/functional-query/queries/QueryTest/paimon-predicate-push-down.test
M tests/query_test/test_paimon.py
14 files changed, 842 insertions(+), 14 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/23793/5
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 5
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 5:
(1 comment)
gerrit-auto-critic failed. You can reproduce it locally using command:
python3 bin/jenkins/critique-gerrit-review.py --dryrun
To run it, you might need a virtual env with Python3's venv installed.
http://gerrit.cloudera.org:8080/#/c/23793/5/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/5/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@110
PS5, Line 110: throw new UnsupportedOperationException("Negation of predicate is not possible");
line too long (93 > 90)
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 5
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sat, 24 Jan 2026 12:01:15 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has uploaded a new patch set (#6). ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
This patch mainly enable the predicate pushdown feature for paimon
table. It will analyze the filter predicates for the given paimon table,
and extract the predicates that can be pushed down to paimon.
these predicate will be applied in-advance to paimon table
to exclude unnecessary partitions,data files for the scanning.
We also introduce a query option:
PAIMON_PREDICATE_PUSHDOWN_ENABLED to turn on/off
the predicate pushdown, by default it is is enabled.
Testing:
- Add test_paimon_predicate_pushdown in test_paimon.py.
- Add testPaimonPredicate in PlannerTest.java
- Add unit test PaimonImpalaExprConverterTest.java
Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
---
M be/src/exec/paimon/paimon-jni-scan-node.cc
M be/src/scheduling/scheduler.cc
M common/protobuf/planner.proto
M common/thrift/PlanNodes.thrift
M fe/src/main/java/org/apache/impala/analysis/LikePredicate.java
M fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java
A fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
M fe/src/test/java/org/apache/impala/planner/PlannerTest.java
A fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
A testdata/workloads/functional-planner/queries/PlannerTest/paimon-predicates.test
A testdata/workloads/functional-query/queries/QueryTest/paimon-predicate-push-down.test
M tests/query_test/test_paimon.py
14 files changed, 843 insertions(+), 14 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/23793/6
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 6
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Riza Suminto (Code Review)" <ge...@cloudera.org>.
Riza Suminto has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 4:
(9 comments)
http://gerrit.cloudera.org:8080/#/c/23793/4/common/thrift/ImpalaService.thrift
File common/thrift/ImpalaService.thrift:
http://gerrit.cloudera.org:8080/#/c/23793/4/common/thrift/ImpalaService.thrift@1077
PS4, Line 1077: // Enables predicate pushdown for Paimon scan plan nodes. If disabled, expressions
: // evaluated by Paimon are not pushed down the scanner node.
: PAIMON_PREDICATE_PUSHDOWN_ENABLED = 199
I still think this query option is not necessary, and Paimon scanner should always do predicate pushdown if it can.
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
File fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java:
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@107
PS3, Line 107: applyPaimonPredicatePushDownIfAvailable(analyzer);
> I checked some complex sql, I think it is after expression rewrite.
Ack
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@316
PS3, Line 316: + "predicates: " + Expr.getExplainString(conjuncts_, detailLevel) + "\n");
: }
: if (!predicateExtractor.getPushedPredicates().isEmpty()) {
: result.append(detailPrefix + "paimon predicates: "
: + Expr.getExplainString(predicateExtractor.getPushedExprs(), detailLevel)
: + "\n");
: }
: if (!predicateExtractor.getPartitionPredicates().isEmpty()) {
: result.append(detailPrefix + "paimon partition predicates: "
: + Expr.getExplainString(
:
> Done
Done
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@58
PS3, Line 58: import java.sql.Timestamp;
: import java.time.LocalDateTime;
> Done
Done
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@60
PS3, Line 60: import java.time.format.DateTimeFormatter;
: import java.util.Arrays;
> Done
Done
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@222
PS3, Line 222: aType(type).getPrimitiveTy
> It is supported, will cover the nanoseconds case.
Done
http://gerrit.cloudera.org:8080/#/c/23793/4/testdata/workloads/functional-query/queries/QueryTest/paimon-ppd-profile.test
File testdata/workloads/functional-query/queries/QueryTest/paimon-ppd-profile.test:
http://gerrit.cloudera.org:8080/#/c/23793/4/testdata/workloads/functional-query/queries/QueryTest/paimon-ppd-profile.test@6
PS4, Line 6: ---- RUNTIME_PROFILE
nit: Please validate the predicate from the query plan as well.
http://gerrit.cloudera.org:8080/#/c/23793/4/tests/query_test/test_paimon.py
File tests/query_test/test_paimon.py:
http://gerrit.cloudera.org:8080/#/c/23793/4/tests/query_test/test_paimon.py@60
PS4, Line 60: test_paimon_ppd
Spell this out: test_paimon_predicate_push_down
http://gerrit.cloudera.org:8080/#/c/23793/4/tests/query_test/test_paimon.py@61
PS4, Line 61: paimon-ppd-profile
Spell this out: paimon-predicate-push-down
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 4
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Fri, 02 Jan 2026 18:12:29 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
Patch Set 12:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/24670/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 12
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sun, 25 Oct 2026 13:15:56 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins 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:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/14449/ DRY_RUN=true
--
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 <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Wed, 11 Nov 2026 01:02:01 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( https://gerrit.cloudera.org/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
Patch Set 14:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/24945/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
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: 14
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Thu, 12 Nov 2026 02:34:13 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 3:
(1 comment)
http://gerrit.cloudera.org:8080/#/c/23793/3//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/23793/3//COMMIT_MSG@15
PS3, Line 15: We also introduce a query option:
: PAIMON_PREDICATE_PUSHDOWN_ENABLED to turn on/off
: the predicate pushdown, by default it is is enabled.
> I mean to always do predicate pushdown, no need to disable it.
I see, I discussed with zoltan internally 2 weeks ago , to check whether we need to add a flag to turn on/off predicate pushdown, zoltan suggested to add a flag, I know it add a bit more complexity to the project. I suggested to keep the option to avoid wrong pushdown result for some corner case.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 3
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Fri, 19 Dec 2025 01:59:05 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 7:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/13064/ DRY_RUN=true
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 7
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Tue, 10 Feb 2026 15:05:12 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 7: Verified+1
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 7
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Tue, 10 Feb 2026 19:47:24 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Zoltan Borok-Nagy (Code Review)" <ge...@cloudera.org>.
Zoltan Borok-Nagy has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 6:
(4 comments)
Left a few small comments, otherwise LGTM!
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@194
PS4, Line 194:
> indexOf("%") returned the last character at L191, so this should be always
This comment was not resolved.
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@199
PS4, Line 199:
> lastIndexOf() returned 0 above, so this should be always true.
This comment was not resolved.
http://gerrit.cloudera.org:8080/#/c/23793/6/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/6/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@111
PS6, Line 111: "
Would it be possible to output the compoundPredicate? So users will know which predicate is the problem.
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
File fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java:
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java@90
PS4, Line 90: postScanExprs_.add(expr);
> Paimon partition design is similar to hive, it does't have partition specs
So my understanding is that exprs in pushedExprs_ are evaluated by the Java Paimon scanner. And exprs in postScanExprs_ are evaluated in our C++ scanner after the Java scanner returned.
So, since 'expr' is already added to pushedExprs_, is it necessary to add it to postScanExprs_?
Or is my understanding incorrect?
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 6
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Tue, 27 Jan 2026 17:12:35 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 4:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/12841/ DRY_RUN=true
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 4
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sun, 28 Dec 2025 15:16:52 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 4: Verified+1
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 4
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sun, 28 Dec 2025 20:15:20 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has uploaded a new patch set (#8). ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
This patch mainly enable the predicate pushdown feature for paimon
table. It will analyze the filter predicates for the given paimon table,
and extract the predicates that can be pushed down to paimon.
these predicate will be applied in-advance to paimon table
to exclude unnecessary partitions,data files for the scanning.
We also introduce a query option:
PAIMON_PREDICATE_PUSHDOWN_ENABLED to turn on/off
the predicate pushdown, by default it is is enabled.
Testing:
- Add test_paimon_predicate_pushdown in test_paimon.py.
- Add testPaimonPredicate in PlannerTest.java
- Add unit test PaimonImpalaExprConverterTest.java
Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
---
M be/src/exec/paimon/paimon-jni-scan-node.cc
M be/src/scheduling/scheduler.cc
M common/protobuf/planner.proto
M common/thrift/PlanNodes.thrift
M fe/src/main/java/org/apache/impala/analysis/LikePredicate.java
M fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java
A fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
M fe/src/test/java/org/apache/impala/planner/PlannerTest.java
A fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
A testdata/workloads/functional-planner/queries/PlannerTest/paimon-predicates.test
A testdata/workloads/functional-query/queries/QueryTest/paimon-predicate-push-down.test
M tests/query_test/test_paimon.py
14 files changed, 1,119 insertions(+), 17 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/23793/8
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 8
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 8:
Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/13096/ DRY_RUN=true
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 8
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Wed, 18 Feb 2026 14:38:10 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
Patch Set 11:
(7 comments)
gerrit-auto-critic failed. You can reproduce it locally using command:
python3 bin/jenkins/critique-gerrit-review.py --dryrun
To run it, you might need a virtual env with Python3's venv installed.
http://gerrit.cloudera.org:8080/#/c/23793/11/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/11/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@67
PS11, Line 67: import java.util.stream.Collectors;
unused import: java.util.stream.Collectors
http://gerrit.cloudera.org:8080/#/c/23793/11/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@123
PS11, Line 123: public boolean isFullyConverted() { return status_ == ConversionStatus.FULLY_CONVERTED; }
line too long (93 > 90)
http://gerrit.cloudera.org:8080/#/c/23793/11/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@315
PS11, Line 315: throw new ImpalaRuntimeException("Unable to convert IN-list literal for pushdown");
line too long (91 > 90)
http://gerrit.cloudera.org:8080/#/c/23793/11/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@356
PS11, Line 356: private static void checkNullLiteral(LiteralExpr literal) throws ImpalaRuntimeException {
line too long (91 > 90)
http://gerrit.cloudera.org:8080/#/c/23793/11/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@370
PS11, Line 370: } else if (columnExpr.getType().isStringType() && literal.getType().isStringType()) {
line too long (91 > 90)
http://gerrit.cloudera.org:8080/#/c/23793/11/fe/src/main/java/org/apache/impala/planner/paimon/PaimonSplit.java
File fe/src/main/java/org/apache/impala/planner/paimon/PaimonSplit.java:
http://gerrit.cloudera.org:8080/#/c/23793/11/fe/src/main/java/org/apache/impala/planner/paimon/PaimonSplit.java@26
PS11, Line 26: import java.util.List;
unused import: java.util.List
http://gerrit.cloudera.org:8080/#/c/23793/11/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
File fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java:
http://gerrit.cloudera.org:8080/#/c/23793/11/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java@83
PS11, Line 83: return newConverter(selectStmt.getAnalyzer()).convertExpr(selectStmt.getWhereClause());
line too long (91 > 90)
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 11
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sun, 25 Oct 2026 12:05:52 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has uploaded a new patch set (#12). ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
This patch mainly enable the predicate pushdown feature for paimon
table. It will analyze the filter predicates for the given paimon table,
and extract the predicates that can be pushed down to paimon.
these predicate will be applied in-advance to paimon table
to exclude unnecessary partitions,data files for the scanning.
Remap pushed predicates to the JNI projected read schema and always
re-evaluate pushed conjuncts in Impala post-scan for correctness while
using Paimon filters for split/file pruning.
Testing:
- Add test_paimon_predicate_pushdown in test_paimon.py.
- Add testPaimonPredicate in PlannerTest.java
- Add unit test PaimonImpalaExprConverterTest.java
- All query results are same for tpcds queries against paimon table
before/after enabing paimon predicate push down.
Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
---
M be/src/exec/paimon/paimon-jni-scan-node.cc
M be/src/scheduling/scheduler.cc
M common/protobuf/planner.proto
M common/thrift/PlanNodes.thrift
M fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaPaimonRowTypeUtils.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonReadFilterBuilder.java
M fe/src/main/java/org/apache/impala/planner/paimon/PaimonSplit.java
A fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
M fe/src/main/java/org/apache/impala/util/paimon/PaimonJniScanner.java
M fe/src/test/java/org/apache/impala/planner/PlannerTest.java
A fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
A fe/src/test/java/org/apache/impala/planner/paimon/PaimonReadFilterBuilderTest.java
A testdata/workloads/functional-planner/queries/PlannerTest/paimon-predicates.test
A testdata/workloads/functional-query/queries/QueryTest/paimon-predicate-push-down.test
M tests/query_test/test_paimon.py
18 files changed, 2,538 insertions(+), 45 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/23793/12
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 12
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Zoltan Borok-Nagy (Code Review)" <ge...@cloudera.org>.
Zoltan Borok-Nagy has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
Patch Set 12:
(7 comments)
Thanks for working on this!
http://gerrit.cloudera.org:8080/#/c/23793/12//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/23793/12//COMMIT_MSG@16
PS12, Line 16: re-evaluate pushed conjuncts in Impala post-scan for correctness while
Partition predicates are removed from the conjuncts, so they are not pushed and not re-evaluated.
http://gerrit.cloudera.org:8080/#/c/23793/12/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
File fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java:
http://gerrit.cloudera.org:8080/#/c/23793/12/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@136
PS12, Line 136: if (!extractedPredicates_.getSelectivityConjuncts().isEmpty()) {
Nit: when pushdown doesn't apply (non-FileStoreTable) this list is empty, so the conjuncts' selectivity is no longer applied at all.
http://gerrit.cloudera.org:8080/#/c/23793/12/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@230
PS12, Line 230: getEffectiveReadFilters()
Nit: the filters are serialized into every split, but the reader only uses splits_.get(0)'s. Could they be sent once per scan node?
http://gerrit.cloudera.org:8080/#/c/23793/12/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/12/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@610
PS12, Line 610: v = Date.valueOf(((DateLiteral) value).getStringValue());
nit: java.sql.Date uses the Julian calendar before 1582-10-15: DATE '1582-10-10' is pushed as 1582-10-20.
LocalDate.ofEpochDay(getValue()) avoids it.
http://gerrit.cloudera.org:8080/#/c/23793/12/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@640
PS12, Line 640: case FLOAT: {
Paimon compares with Float.compare(): -0.0 = 0 is false (loses rows) and NaN > 1 is true (extra rows on partition columns).
Maybe don't push FLOAT/DOUBLE? And do something similar to https://gerrit.cloudera.org/#/c/25192/ in a follow up?
http://gerrit.cloudera.org:8080/#/c/23793/12/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@695
PS12, Line 695: long micros = ExprUtil.utcTimestampToUnixTimeMicros(analyzer_, literal);
Paimon converts the java.sql.Timestamp back to a wall clock in the JVM zone
(fromSQLTimestamp), so with TZ=Europe/Budapest '2024-01-01 00:00' is pushed as
01:00, and pruned files/partitions lose rows. Please pass a LocalDateTime built in
UTC, and test the converted value under a non-UTC default zone.
http://gerrit.cloudera.org:8080/#/c/23793/12/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@707
PS12, Line 707: ts.setNanos((int) ((micros % 1000000) * 1000));
Sub-micro digits are truncated: ts < '2024-01-01 00:00:00.0000005' is pushed as ts < '2024-01-01 00:00:00' and drops rows at exactly 00:00:00, and = leaks rows on
partition columns. Probably we shouldn't push such literals.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 12
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Thu, 29 Oct 2026 13:37:45 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has uploaded a new patch set (#15). ( https://gerrit.cloudera.org/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Push conjuncts to Paimon as partition filters and data filters.
Partition-only predicates that map exactly onto partition keys are
used for pruning and are not re-checked after the scan. Data filters
and predicates that are not exact at the partition layer (including
LIKE/REGEXP) stay in Impala conjuncts for post-scan evaluation and
selectivity; Paimon still applies them for file/data pruning where
supported.
Serialize partition and data predicates once per scan as
PaimonJniReadFilter on TPaimonScanNode and TPaimonJniScanParam;
PaimonSplit carries only the split. JNI must not remap data filters
to the projected schema (Paimon projects them). Fix DATE/TIMESTAMP
literals, reject sub-microsecond timestamps, and skip ambiguous or
invalid TIMESTAMP WITH LOCAL TIME ZONE literals. Push FLOAT/DOUBLE with
Impala/Paimon semantic alignment (-0.0, NaN); restrict float != and
NOT IN to partition filters only.
Testing:
- PaimonJniReadFilterTest and PaimonImpalaExprConverterTest
- test_paimon_predicate_pushdown and PlannerTest Paimon cases
Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Assisted-by: Composer (Cursor)
---
M be/src/exec/paimon/paimon-jni-scan-node.cc
M be/src/scheduling/scheduler.cc
M common/protobuf/planner.proto
M common/thrift/PlanNodes.thrift
M fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaPaimonRowTypeUtils.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonJniReadFilter.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java
M fe/src/main/java/org/apache/impala/planner/paimon/PaimonSplit.java
A fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
M fe/src/main/java/org/apache/impala/util/paimon/PaimonJniScanner.java
M fe/src/test/java/org/apache/impala/planner/PlannerTest.java
A fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
A fe/src/test/java/org/apache/impala/planner/paimon/PaimonJniReadFilterTest.java
A testdata/workloads/functional-planner/queries/PlannerTest/paimon-predicates.test
A testdata/workloads/functional-query/queries/QueryTest/paimon-predicate-push-down.test
M tests/query_test/test_paimon.py
18 files changed, 3,261 insertions(+), 48 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/23793/15
--
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: newpatchset
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 15
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Zoltan Borok-Nagy (Code Review)" <ge...@cloudera.org>.
Zoltan Borok-Nagy has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 4:
(19 comments)
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
File fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java:
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@118
PS4, Line 118: // check query options for pushdown enabled settings.
nit: I don't think we need these trivial comments here
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@121
PS4, Line 121: {
nit: for single-line if statements we don't need the curly brackets. Should be the same as in L119.
This applies to L129 as well.
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@128
PS4, Line 128: // check query options for pushdown enabled settings.
nit: the code if self-explanatory enough
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@201
PS4, Line 201: canApplyPaimonPredicatePushdown(analyzer)
Do we need to check this? predicateExtractor.getPushedPredicates() should always be empty wan we cannot apply predicates.
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@231
PS4, Line 231: setFile_metadata
Instead of hijacking 'file_metadata', we should add another member to TScanRange and ScanRangePB.
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@74
PS4, Line 74: "="
Should we add "!=" as well?
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@118
PS4, Line 118: break;
At this point it would be more informational to throw an error like "Negation of predicate is not possible: ...", than falling back to the generic filter is unsupported error.
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@124
PS4, Line 124: if (binaryPredicate.getChild(1) instanceof LiteralExpr) {
: literal = (LiteralExpr) binaryPredicate.getChild(1);
: attribute = extractSlotRef(binaryPredicate.getChild(0));
: } else {
: literal = (LiteralExpr) binaryPredicate.getChild(0);
: attribute = extractSlotRef(binaryPredicate.getChild(1));
: }
IIRC we normalize predicates to always have literals on the right side, but you can double-check.
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@131
PS4, Line 131: String field = attribute.getResolvedPath().destColumn().getName();
: int index = fieldIndex(field);
This repeats multiple times, could be moved to a helper method. Probably extractSlotRef() can be moved into that helper as well.
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@192
PS4, Line 192: literal_value.charAt(0) != '%'
lenth is greater than 1, and indexOf("%") returned the index of the last character, so first char should never be '%'.
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@193
PS4, Line 193: cadidate
typo: candidate
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@194
PS4, Line 194: if (!cadidate.contains("%")) {
indexOf("%") returned the last character at L191, so this should be always true.
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@199
PS4, Line 199: if (!candidate.contains("%")) {
lastIndexOf() returned 0 above, so this should be always true.
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@207
PS4, Line 207: Support
nit: Supported
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@274
PS4, Line 274: extractSlotRef
Can't you just use Expr.unwrapSlotRef()?
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java
File fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java:
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java@54
PS4, Line 54: {
nit: curly-brackets not needed for single-line if stmts
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
File fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java:
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java@90
PS4, Line 90: postScanExprs_.add(expr);
Isn't it enough to add 'expr' to pushedExprs? Don't we evaluate these twice? Once by the java Paimon scanner, and once by Impala's C++ scanner?
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java@96
PS4, Line 96: public static List<Predicate> getPredicates(List<Pair> list) {
: return list.stream().map(p -> (Predicate) p.getSecond()).collect(Collectors.toList());
: }
:
: public static List<Expr> getExpr(List<Pair> list) {
: return list.stream().map(p -> (Expr) p.first).collect(Collectors.toList());
: }
They are now unused, right?
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
File fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java:
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java@107
PS4, Line 107: %s < 1
You could add tests where literal is on the left side.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 4
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Thu, 08 Jan 2026 14:56:14 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 7:
(6 comments)
http://gerrit.cloudera.org:8080/#/c/23793/6/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
File fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java:
http://gerrit.cloudera.org:8080/#/c/23793/6/fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java@119
PS6, Line 119: return true;
> nit: can we simplify this to just
Done
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@194
PS4, Line 194: t getAttributeFieldIndex(SlotR
> This comment was not resolved.
Done
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@199
PS4, Line 199: ect convertLiteral(String field
> This comment was not resolved.
Done
http://gerrit.cloudera.org:8080/#/c/23793/6/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/6/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@111
PS6, Line 111: c
> Would it be possible to output the compoundPredicate? So users will know wh
Done
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
File fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java:
http://gerrit.cloudera.org:8080/#/c/23793/4/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java@90
PS4, Line 90: prs.isEmpty()) { return n
> So my understanding is that exprs in pushedExprs_ are evaluated by the Java
the exprs in pushedExprs_ includes expressions can be pushed down to Java Paimon Scanner, the pushed expressions has 2 categories, 1. partition expressions, for partition expression, the paimon scanner guarentees the data is accurately filtered , for this category, the partition expression is ok not to add it to postScanExprs_. 2. for other pushed expressions, although the expression is pushed, paimon java scanner can't guarentee the data is accurately filtered, it only exclude unnecessary row-groups, for this case, we need to add the expression to postScanExprs_ to filter is again in c++ scanner. Current implementation the non-partition related expressions will be added to postScanExprs_ for further filtering, partition related filter expression will NOT be added to postScanExprs_ to reduce overhead of c++ scanner. But I think it is ok to add partition expressions to postScanExprs_ if the overhead can be ignored. if you think it is better to add partition expression to postScanExprs_, I will add it.
http://gerrit.cloudera.org:8080/#/c/23793/6/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
File fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java:
http://gerrit.cloudera.org:8080/#/c/23793/6/fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java@40
PS6, Line 40: * ExtractedPredicates hold the predicate pushdown result from PredicateExtractor
> style nit:
Done
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 7
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Tue, 10 Feb 2026 22:37:19 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Steve Carlin (Code Review)" <ge...@cloudera.org>.
Steve Carlin has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 8: Code-Review+1
(1 comment)
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/8/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@164
PS8, Line 164: if (literal_value == null) {
Nit: slightly inconsistent from the way EQ and NE are written out, same on lines 178, 191, and 214, I like the compact way better, but purely optional if you don't feel like recompiling.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 8
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Fri, 20 Feb 2026 03:51:54 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 8:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/21693/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 8
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Wed, 18 Feb 2026 15:04:03 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has uploaded a new patch set (#2). ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
This patch mainly enable the predicate pushdown feature for paimon
table. It will analyze the filter predicates for the given paimon table,
and extract the predicates that can be pushed down to paimon.
these predicate will be applied in-advance to paimon table
to exclude unnecessary partitions,data files for the scanning.
We also introduce a query option:
PAIMON_PREDICATE_PUSHDOWN_ENABLED to turn on/off
the predicate pushdown, by default it is is enabled.
Testing:
- Add test_paimon_ppd in test_paimon.py.
Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
---
M be/src/service/query-options.cc
M be/src/service/query-options.h
M common/thrift/ImpalaService.thrift
M common/thrift/Query.thrift
M fe/src/main/java/org/apache/impala/analysis/LikePredicate.java
M fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java
A fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
A testdata/workloads/functional-query/queries/QueryTest/paimon-ppd-profile.test
M testdata/workloads/functional-query/queries/QueryTest/paimon-query.test
M tests/query_test/test_paimon.py
12 files changed, 488 insertions(+), 11 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/23793/2
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 2
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 2:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/21192/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 2
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Comment-Date: Wed, 17 Dec 2025 02:24:34 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Riza Suminto (Code Review)" <ge...@cloudera.org>.
Riza Suminto has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 3:
(1 comment)
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:
http://gerrit.cloudera.org:8080/#/c/23793/3/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@58
PS3, Line 58: /** Conversion from {@link Expr} to paimon {@link Predicate}. */
: public class ImpalaExprConverter {
Can you create FE test to test all public methods in ImpalaExprConverter?
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 3
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Fri, 19 Dec 2025 05:12:33 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 3:
sure, will do it.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 3
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Fri, 19 Dec 2025 14:43:04 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 5:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/21485/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 5
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sat, 24 Jan 2026 12:53:53 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092 Part3: Enable predicate pushdown for paimon table.
......................................................................
Patch Set 5: Verified+1
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 5
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sat, 24 Jan 2026 16:51:06 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
Patch Set 12: Verified+1
--
To view, visit http://gerrit.cloudera.org:8080/23793
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 12
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Sun, 25 Oct 2026 17:33:42 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( https://gerrit.cloudera.org/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
Patch Set 14: Verified+1
--
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: 14
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Thu, 12 Nov 2026 06:40:30 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has posted comments on this change. ( https://gerrit.cloudera.org/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
Patch Set 14:
(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: skip ambiguous or
> FLOAT/DOUBLE are pushed now (with the -0.0/NaN rewrites), and != / NOT IN o
Done
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: cardinality_ = applyConjunctsSelectivity(cardinality_);
> Nit: after pushdown conjuncts_ holds the same exprs as getSelectivityConjun
Done
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 one Instant; skip push when session-local time is ambiguous
> Impala reads LTZ values as session-local wall clock, but only one instant i
DONE, use solution:'will not push when localTimestampToUnixTimeMicros(.., true) and (.., false) differ or are null,'
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: * @see org.apache.impala.util.paimon.PaimonJniScanner
> nit: unused?
Still used: PaimonJniScanner passes TPaimonJniScanParam.paimon_read_filters (a Thrift ByteBuffer slice) into deserialize(ByteBuffer) so we copy remaining() bytes only, not the whole backing array
--
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: 14
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Thu, 12 Nov 2026 06:54:35 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins 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: Verified+1
--
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 <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Wed, 11 Nov 2026 05:41:30 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "ji chen (Code Review)" <ge...@cloudera.org>.
ji chen has uploaded a new patch set (#14). ( https://gerrit.cloudera.org/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Push conjuncts to Paimon as partition filters and data filters.
Partition-only predicates that map exactly onto partition keys are
used for pruning and are not re-checked after the scan. Data filters
and predicates that are not exact at the partition layer (including
LIKE/REGEXP) stay in Impala conjuncts for post-scan evaluation and
selectivity; Paimon still applies them for file/data pruning where
supported.
Serialize partition and data predicates once per scan as
PaimonJniReadFilter on TPaimonScanNode and TPaimonJniScanParam;
PaimonSplit carries only the split. JNI must not remap data filters
to the projected schema (Paimon projects them). Fix DATE/TIMESTAMP
literals, reject sub-microsecond timestamps, and skip ambiguous or
invalid TIMESTAMP WITH LOCAL TIME ZONE literals. Push FLOAT/DOUBLE with
Impala/Paimon semantic alignment (-0.0, NaN); restrict float != and
NOT IN to partition filters only.
Testing:
- PaimonJniReadFilterTest and PaimonImpalaExprConverterTest
- test_paimon_predicate_pushdown and PlannerTest Paimon cases
Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Assisted-by: Composer (Cursor)
Co-authored-by: Cursor <cu...@cursor.com>
---
M be/src/exec/paimon/paimon-jni-scan-node.cc
M be/src/scheduling/scheduler.cc
M common/protobuf/planner.proto
M common/thrift/PlanNodes.thrift
M fe/src/main/java/org/apache/impala/planner/PaimonScanNode.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
A fe/src/main/java/org/apache/impala/planner/paimon/ImpalaPaimonRowTypeUtils.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonJniReadFilter.java
A fe/src/main/java/org/apache/impala/planner/paimon/PaimonPartitionPredicateVisitor.java
M fe/src/main/java/org/apache/impala/planner/paimon/PaimonSplit.java
A fe/src/main/java/org/apache/impala/planner/paimon/PredicateExtractor.java
M fe/src/main/java/org/apache/impala/util/paimon/PaimonJniScanner.java
M fe/src/test/java/org/apache/impala/planner/PlannerTest.java
A fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
A fe/src/test/java/org/apache/impala/planner/paimon/PaimonJniReadFilterTest.java
A testdata/workloads/functional-planner/queries/PlannerTest/paimon-predicates.test
A testdata/workloads/functional-query/queries/QueryTest/paimon-predicate-push-down.test
M tests/query_test/test_paimon.py
18 files changed, 3,261 insertions(+), 48 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/23793/14
--
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: newpatchset
Gerrit-Change-Id: Iee07fa35de8381121a20b2976d6424626d705483
Gerrit-Change-Number: 23793
Gerrit-PatchSet: 14
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
[Impala-ASF-CR] IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( https://gerrit.cloudera.org/23793 )
Change subject: IMPALA-14092: Part3: Enable predicate pushdown for Paimon tables.
......................................................................
Patch Set 15: Verified-1
Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/14476/
--
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: 15
Gerrit-Owner: ji chen <ji...@163.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@gmail.com>
Gerrit-Reviewer: Steve Carlin <sc...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <bo...@cloudera.com>
Gerrit-Reviewer: ji chen <ji...@163.com>
Gerrit-Comment-Date: Fri, 13 Nov 2026 07:18:00 +0000
Gerrit-HasComments: No