Zoltan Borok-Nagy has uploaded this change for review. ( http://gerrit.cloudera.org:8080/25099
Change subject: PROTOTYPE: Adaptive bypass for streaming pre-aggregations ...................................................................... PROTOTYPE: Adaptive bypass for streaming pre-aggregations A streaming pre-aggregation decides whether to grow its hash tables by extrapolating the reduction it has seen to the planner's input estimate. N / n in that extrapolation is an integer division, and the planner's estimate can be far off: at TPC-DS SF3000 the pre-aggregations of q65, q78 and q97 keep 92-99% of their rows but build hash tables of up to 1.2 GB per instance. ShouldExpandPreaggHashTables() now uses floating point division. With --preagg_adaptive_bypass (default true), once an instance has hashed --preagg_bypass_min_rows rows it measures the reduction over windows of input rows. If the reduction is below --preagg_bypass_min_reduction (1.2), rows are passed through without hashing, and the reduction is re-sampled periodically with a doubling bypass length. Results are not affected. Testing: - TPC-DS SF3000, 8 executors, MT_DOP=8, PLANNER=CALCITE, CTE_THRESHOLD=1: 103 queries 644.8 s -> 621.9 s, results matched (q67a -5.8 s, q65 -5.0 s, q97 -4.9 s, q78 -3.8 s; q4 +1.0 s). No new tests. Change-Id: I75242889d8b65e21c1025e7a511814361c3a77c6 Assisted-by: Claude Opus 5.5 (Claude Code) --- M be/src/exec/grouping-aggregator-ir.cc M be/src/exec/grouping-aggregator.cc M be/src/exec/grouping-aggregator.h M be/src/exec/hash-table.h M be/src/exec/hash-table.inline.h 5 files changed, 237 insertions(+), 10 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/99/25099/1 -- To view, visit http://gerrit.cloudera.org:8080/25099 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I75242889d8b65e21c1025e7a511814361c3a77c6 Gerrit-Change-Number: 25099 Gerrit-PatchSet: 1 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
