Uh oh!
There was an error while loading. Please reload this page.
[fix](nereids) Use correct PREAGGREGATION in agg(filter(scan)) - #33454
Conversation
doris-robot
commented
Apr 10, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
liutang123
commented
Apr 10, 2024
@BiteTheDDDDt hello, do you have time to see this pr? |
liutang123
commented
Apr 11, 2024
run buildall |
| boolean contains = containsAllColumn(aggFunc.child(0), ctx.keyNameToColumn.keySet()); | ||
| if (contains || ctx.keyNameToColumn.containsKey(childNameWithFuncName)) { | ||
| if (ctx.isDupKeysOrMergeOnWrite || (!ctx.isBaseIndex() && contains)) { | ||
| if (canUseKeyColumn || ctx.isDupKeysOrMergeOnWrite || (!ctx.isBaseIndex() && contains)) { |
There was a problem hiding this comment.
maybe we can use ctx.isBaseIndex() to replace canUseKeyColumn?
There was a problem hiding this comment.
It doesn't seem to work.
Uh oh!
There was an error while loading. Please reload this page.
liutang123
commented
Apr 11, 2024
run feut |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
liutang123
commented
Apr 12, 2024
run buildall |
liutang123
commented
Apr 12, 2024
run buildall |
PR approved by at least one committer and no changes requested. |
liutang123
commented
Apr 13, 2024
run buildall |
doris-robot
commented
Apr 13, 2024
TPC-H: Total hot run time: 38325 ms |
doris-robot
commented
Apr 13, 2024
TPC-DS: Total hot run time: 183712 ms |
doris-robot
commented
Apr 13, 2024
ClickBench: Total hot run time: 30.28 s |
doris-robot
commented
Apr 13, 2024
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
liutang123
commented
Apr 13, 2024
@morrySnow Hi, Wenxin. This PR is ready for merge. Do you have time to have a look at it? |
| } | ||
| qt_right_when_preagg_on "select k1, min(k2), max(k3) from test_scan_preaggregation where k1 = 1 group by k1;" | ||
| qt_right_when_preagg_off "select k1, sum(v1) from test_scan_preaggregation group by k1;" |
There was a problem hiding this comment.
qt_right_when_preagg_off is misleading, the preagg should be on ? and please use explain to verify the preagg status
There was a problem hiding this comment.
Sorry, I was originally going to test aggregation on key columns. I modified the test sql.
liutang123
commented
Apr 15, 2024
run buildall |
doris-robot
commented
Apr 15, 2024
TPC-H: Total hot run time: 38509 ms |
doris-robot
commented
Apr 15, 2024
TPC-DS: Total hot run time: 183093 ms |
doris-robot
commented
Apr 15, 2024
ClickBench: Total hot run time: 30.41 s |
doris-robot
commented
Apr 15, 2024
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
liutang123
commented
Apr 15, 2024
@starocean999 Hi, I fix the regression test case, can you take another look at this PR? |
PR approved by at least one committer and no changes requested. |
1. set `PreAggStatus` to `ON` when agg key column by max or min; 2. #28747 may change `PreAggStatus` of scan, inherit it from the previous one.
1. set `PreAggStatus` to `ON` when agg key column by max or min; 2. #28747 may change `PreAggStatus` of scan, inherit it from the previous one.
1. set `PreAggStatus` to `ON` when agg key column by max or min; 2. #28747 may change `PreAggStatus` of scan, inherit it from the previous one.
…e#33454) 1. set `PreAggStatus` to `ON` when agg key column by max or min; 2. apache#28747 may change `PreAggStatus` of scan, inherit it from the previous one.
Proposed changes
Issue Number: close#33351
PreAggStatustoONwhen agg key column by max or min;PreAggStatusof scan, inherit it from the previous one.Further comments
Further regression test case will be conducted later.