-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[opt](nereids)new way to set pre-agg status #34738
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
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
8f13fb0 to
4095719
Compare
|
run buildall |
4095719 to
78c4fe2
Compare
|
run buildall |
TPC-H: Total hot run time: 41736 ms |
TPC-DS: Total hot run time: 185998 ms |
ClickBench: Total hot run time: 30.06 s |
78c4fe2 to
7a9b62f
Compare
|
run buildall |
7a9b62f to
12988ae
Compare
|
run buildall |
| PREAGG_STATUS_AGG_FILTER_SCAN(RuleTypeClass.REWRITE), | ||
| PREAGG_STATUS_AGG_PROJECT_SCAN(RuleTypeClass.REWRITE), | ||
| PREAGG_STATUS_AGG_PROJECT_FILTER_SCAN(RuleTypeClass.REWRITE), | ||
| PREAGG_STATUS_AGG_FILTER_PROJECT_SCAN(RuleTypeClass.REWRITE), |
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.
why we have filter above project? for variant?
| MaterializedIndexMeta meta = olapScan.getTable().getIndexMetaByIndexId(selectIndexId); | ||
| if (meta.getKeysType() == KeysType.DUP_KEYS || (meta.getKeysType() == KeysType.UNIQUE_KEYS | ||
| && olapScan.getTable().getEnableUniqueKeyMergeOnWrite())) { | ||
| return PreAggStatus.on(); | ||
| } |
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.
let it be a short path method before we do extract and normalize agg function? for most case, this will work well
12988ae to
2a4e324
Compare
|
run buildall |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
fix bug introduced by #34738 set preagg to off if agg function has no children( like count(*) )
fix bug introduced by #34738 set preagg to off if agg function has no children( like count(*) )
fix bug introduced by apache#34738 set preagg to off if agg function has no children( like count(*) )
Proposed changes
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...