Zoltan Borok-Nagy has uploaded this change for review. ( http://gerrit.cloudera.org:8080/25098
Change subject: PROTOTYPE: Limit group growth when pushing aggregations below joins ...................................................................... PROTOTYPE: Limit group growth when pushing aggregations below joins At TPC-DS SF3000 the aggregate-join transpose made q47 slower: the pushed-down aggregation groups by ss_store_sk (7.03M groups) instead of store name and company, so it reduces less than the aggregation above the join. Disabling the transpose helps q47 but costs q4 and q11 far more. The rule now does not fire if the pushed-down aggregation is estimated to have more than 4 times as many groups as the original one. This change depends on the transpose prototype it is based on. Testing: - TPC-DS SF3000, 8 executors, MT_DOP=8, PLANNER=CALCITE, CTE_THRESHOLD=1: on the 17 queries the transpose touches, -3.1 s (q47 9.8 s -> 6.6 s, q4 19.9 s -> 17.7 s, q31 +1.5 s), results matched. No new tests. Change-Id: I4ee72598ea99ff7c9af085837facb6d3196c8079 Assisted-by: Claude Opus 5.5 (Claude Code) --- M java/calcite-planner/src/main/java/org/apache/impala/calcite/rules/ImpalaAggregateJoinTransposeRule.java 1 file changed, 9 insertions(+), 1 deletion(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/98/25098/1 -- To view, visit http://gerrit.cloudera.org:8080/25098 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I4ee72598ea99ff7c9af085837facb6d3196c8079 Gerrit-Change-Number: 25098 Gerrit-PatchSet: 1 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
