Zoltan Borok-Nagy has uploaded this change for review. ( http://gerrit.cloudera.org:8080/25092
Change subject: PROTOTYPE: Inline large CTE suggestions without aggregation ...................................................................... PROTOTYPE: 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/1 -- 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: newchange Gerrit-Change-Id: I025e5fdd0faf5288e3cfd186b875cdd5bcee9368 Gerrit-Change-Number: 25092 Gerrit-PatchSet: 1 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
