Uh oh!
There was an error while loading. Please reload this page.
[feat](nereids)push Limit to local agg - #34853
Conversation
doris-robot
commented
May 14, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
englefly
commented
May 14, 2024
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
morrySnow
commented
May 15, 2024
add description please |
clang-tidy review says "All clean, LGTM! 👍" |
morrySnow
commented
May 21, 2024
add description |
Uh oh!
There was an error while loading. Please reload this page.
englefly
commented
May 22, 2024
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
doris-robot
commented
May 22, 2024
TPC-H: Total hot run time: 42152 ms |
doris-robot
commented
May 22, 2024
TPC-DS: Total hot run time: 181914 ms |
doris-robot
commented
May 22, 2024
ClickBench: Total hot run time: 30.66 s |
clang-tidy review says "All clean, LGTM! 👍" |
englefly
commented
May 22, 2024
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
doris-robot
commented
May 22, 2024
TPC-H: Total hot run time: 40308 ms |
doris-robot
commented
May 22, 2024
TPC-DS: Total hot run time: 171080 ms |
doris-robot
commented
May 22, 2024
ClickBench: Total hot run time: 30.31 s |
englefly
commented
May 27, 2024
run buildall |
doris-robot
commented
May 27, 2024
TPC-H: Total hot run time: 41660 ms |
doris-robot
commented
May 27, 2024
TPC-DS: Total hot run time: 171056 ms |
doris-robot
commented
May 27, 2024
ClickBench: Total hot run time: 31.22 s |
Uh oh!
There was an error while loading. Please reload this page.
englefly
commented
Jul 3, 2024
run buildall |
doris-robot
commented
Jul 3, 2024
TPC-H: Total hot run time: 39942 ms |
doris-robot
commented
Jul 3, 2024
TPC-DS: Total hot run time: 170725 ms |
doris-robot
commented
Jul 3, 2024
ClickBench: Total hot run time: 30.1 s |
englefly
commented
Jul 3, 2024
run p0 |
englefly
commented
Jul 3, 2024
run cloud_p1 |
englefly
commented
Jul 4, 2024
run buildall |
doris-robot
commented
Jul 4, 2024
TPC-H: Total hot run time: 39917 ms |
doris-robot
commented
Jul 4, 2024
TPC-DS: Total hot run time: 172310 ms |
doris-robot
commented
Jul 4, 2024
ClickBench: Total hot run time: 30.04 s |
## Proposed changes for a pattern: topn(n)->globalAgg->localAgg this pr tries to add a filter on global/localAgg which means only the first n tuples are counted, and others could be ignored. inorder to obtain this benefit, optimizer will change limit node to topn node if the limit number is less than topnOptLimitThreshold. Issue Number: close #xxx <!--Describe your changes.--> ## Further comments If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
### What problem does this PR solve? Pr #34853 introduced PushTopnToAgg rule. But there is a limitation that Topn(limit) should output all group by keys. This pr removes this limitation by using the first group by key as order key.
### What problem does this PR solve? Pr #34853 introduced PushTopnToAgg rule. But there is a limitation that Topn(limit) should output all group by keys. This pr removes this limitation by using the first group by key as order key.
Before merge apache#34853, should merge the pr firstly
## Proposed changes for a pattern: topn(n)->globalAgg->localAgg this pr tries to add a filter on global/localAgg which means only the first n tuples are counted, and others could be ignored. inorder to obtain this benefit, optimizer will change limit node to topn node if the limit number is less than topnOptLimitThreshold. Issue Number: close #xxx <!--Describe your changes.--> ## Further comments If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
### What problem does this PR solve? Pr apache#34853 introduced PushTopnToAgg rule. But there is a limitation that Topn(limit) should output all group by keys. This pr removes this limitation by using the first group by key as order key.
Proposed changes
for a pattern: topn(n)->globalAgg->localAgg
this pr tries to add a filter on global/localAgg which means only the first n tuples are counted, and others could be ignored.
inorder to obtain this benefit, optimizer will change limit node to topn node if the limit number is less than topnOptLimitThreshold.
Issue Number: close #xxx
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...