-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat](nereids)push Limit to local agg #34853
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
add description please |
clang-tidy review says "All clean, LGTM! 👍" |
add description |
...-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalHashAggregate.java
Outdated
Show resolved
Hide resolved
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 42152 ms
|
TPC-DS: Total hot run time: 181914 ms
|
ClickBench: Total hot run time: 30.66 s
|
clang-tidy review says "All clean, LGTM! 👍" |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 40308 ms
|
TPC-DS: Total hot run time: 171080 ms
|
ClickBench: Total hot run time: 30.31 s
|
run buildall |
TPC-H: Total hot run time: 41660 ms
|
TPC-DS: Total hot run time: 171056 ms
|
ClickBench: Total hot run time: 31.22 s
|
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/LimitAggToTopNAgg.java
Show resolved
Hide resolved
ClickBench: Total hot run time: 30.42 s
|
run buildall |
TPC-H: Total hot run time: 40197 ms
|
TPC-DS: Total hot run time: 172458 ms
|
ClickBench: Total hot run time: 30.66 s
|
run buildall |
TPC-H: Total hot run time: 39942 ms
|
TPC-DS: Total hot run time: 170725 ms
|
ClickBench: Total hot run time: 30.1 s
|
run p0 |
run cloud_p1 |
run buildall |
TPC-H: Total hot run time: 39917 ms
|
TPC-DS: Total hot run time: 172310 ms
|
ClickBench: Total hot run time: 30.04 s
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
## 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 [[email protected]](mailto:[email protected]) by explaining why you chose the solution you did and what alternatives you considered, etc...
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 [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...