Optimize Clickbench Query 29 by adding a new Optimizer rule#20180
Optimize Clickbench Query 29 by adding a new Optimizer rule#20180devanshu0987 wants to merge 10 commits intoapache:mainfrom
Conversation
|
run benchmark sql_planner |
|
🤖 |
|
run benchmarks |
|
Thanks @devanshu0987 -- I kicked off some benchmarks |
|
🤖: Benchmark completed Details
|
|
🤖 |
|
🤖: Benchmark completed Details
|
Which issue does this PR close?
SUM(..)clauses #15524Rationale for this change
SUM(ResolutionWidth), SUM(ResolutionWidth + 1), SUM(ResolutionWidth + 2), ..., SUM(ResolutionWidth + 89)SUM(A + k)intoSUM(A) + k * COUNT(*)CommonSubexprEliminateto allow re use of the common SUM and COUNT expression.What changes are included in this PR?
RewriteAggregateWithConstantAre these changes tested?
Are there any user-facing changes?
No
AI Usage