Hello Impala Public Jenkins,

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/25092

to look at the new patch set (#2).

Change subject: PROTOTYPE IMPALA-15659: Inline large CTE suggestions without 
aggregation
......................................................................

PROTOTYPE IMPALA-15659: Inline large CTE suggestions without aggregation

With CTE suggestions, the Calcite planner materializes every suggested
subtree that is referenced often enough. For a large scan/filter/join
subtree, writing and reading back the rows costs more than computing
them again. TPC-DS SF1000 q14_1 and q14_2 materialize a 1.65B-row CTE.

A suggestion without an aggregation that is estimated at more than
100M rows and has at most two consumers is no longer materialized.
Both limits are constants for now.

Testing:
- TPC-DS SF1000, 8 executors, MT_DOP=8, PLANNER=CALCITE,
  CTE_THRESHOLD=1, on top of earlier prototypes: q14_1, q14_2 and q75
  together 48.2 s -> 40.5 s. No new tests.

Change-Id: I025e5fdd0faf5288e3cfd186b875cdd5bcee9368
Assisted-by: Claude Opus 5.5 (Claude Code)
---
M 
java/calcite-planner/src/main/java/org/apache/impala/calcite/service/CalciteOptimizer.java
1 file changed, 34 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/92/25092/2
--
To view, visit http://gerrit.cloudera.org:8080/25092
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I025e5fdd0faf5288e3cfd186b875cdd5bcee9368
Gerrit-Change-Number: 25092
Gerrit-PatchSet: 2
Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>

Reply via email to