-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[Feature](Nereids) Add hint to enable pre-aggregation when scan OLAP table. #15614
Conversation
1e78731
to
54df132
Compare
TeamCity pipeline, clickbench performance test result: |
Why we need hint to do this? This should be set automatically by optimizer? |
This hint is supported by the old planner currently. |
4a4a0c5
to
3ac337b
Compare
OK, I see |
e26d0b6
to
c6db316
Compare
93e47a4
to
f474a1d
Compare
f474a1d
to
674a2f0
Compare
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
…table. (apache#15614) This pr added support for the pre-aggregation hint. Users could use /*+PREAGGOPEN*/ to enable pre-preaggregation for OLAP table. For example: Let's say we have an aggregate-keys table t (k1 int, k2 int, v1 int sum, v2 int sum). Pre-aggregation could be enabled by query with a hint: select k1, v1 from t /*+PREAGGOPEN*/.
Proposed changes
This pr added support for the pre-aggregation hint. Users could use
/*+PREAGGOPEN*/
to enable pre-preaggregation for OLAP table.For example:
Let's say we have an aggregate-keys table t (k1 int, k2 int, v1 int sum, v2 int sum). Pre-aggregation could be enabled by query with a hint:
select k1, v1 from t /*+PREAGGOPEN*/
.Checklist(Required)
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...