Stamatis Zampetakis has posted comments on this change. ( 
https://gerrit.cloudera.org/25030 )

Change subject: IMPALA-15489: Inefficient CTE plans with trivial IS NOT NULL 
filters
......................................................................


Patch Set 2:

(4 comments)

> Patch Set 2:
>
> (3 comments)
>
> Was this just a rebase? Or did something functionally change?

I added another rule for restoring some simplifications and updated the plans 
for some tests that were failing previously. I also did a thorough pass over 
TPC-DS plans and categorized the changes in the commit message to ensure they 
are expected.

https://gerrit.cloudera.org/#/c/25030/2//COMMIT_MSG
Commit Message:

https://gerrit.cloudera.org/#/c/25030/2//COMMIT_MSG@14
PS2, Line 14: h3. Functional planner
> Do the headers format somewhere? They don't seem to add anything here. The
It's not for formatting. I just used it for semantic structuring since commit 
message ended up quite long.


https://gerrit.cloudera.org/#/c/25030/2//COMMIT_MSG@20
PS2, Line 20: placing changinging the underlying cardinalities.
> typo: changinging
I will fix it in the next update. Thanks!


https://gerrit.cloudera.org/#/c/25030/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/CalciteOptimizer.java
File 
java/calcite-planner/src/main/java/org/apache/impala/calcite/service/CalciteOptimizer.java:

https://gerrit.cloudera.org/#/c/25030/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/CalciteOptimizer.java@351
PS2, Line 351:     builder.addRuleInstance(new 
ImpalaFilterSimplifyRule(simplifier));
The simplification rule is the only new prod change in the second patch. It 
allows to restore some minor lost simplifications.


https://gerrit.cloudera.org/#/c/25030/2/testdata/workloads/functional-query/queries/QueryTest/cte.test
File testdata/workloads/functional-query/queries/QueryTest/cte.test:

https://gerrit.cloudera.org/#/c/25030/2/testdata/workloads/functional-query/queries/QueryTest/cte.test@28
PS2, Line 28: '|  |  predicates: n_nationkey IS NOT NULL'
> It seems unfortunate IS NOT NULL doesn't get pushed down, but maybe it does
It only happens for CTEs and performance wise I doubt its gonna change much. 
Cardinality estimations are affected but gonna look into those in 
https://issues.apache.org/jira/browse/IMPALA-15674



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id5084b4b03cb0277a945338855a2d85f6c04a211
Gerrit-Change-Number: 25030
Gerrit-PatchSet: 2
Gerrit-Owner: Stamatis Zampetakis <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Joe McDonnell <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Stamatis Zampetakis <[email protected]>
Gerrit-Reviewer: Steve Carlin <[email protected]>
Gerrit-Comment-Date: Fri, 06 Nov 2026 17:51:50 +0000
Gerrit-HasComments: Yes

Reply via email to