Uh oh!
There was an error while loading. Please reload this page.
[fix] (planner) support auto aggregation for random distributed table - #33630
Conversation
doris-robot
commented
Apr 14, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
DarvenDuan
commented
Apr 14, 2024
run buildall |
doris-robot
commented
Apr 14, 2024
TPC-H: Total hot run time: 38165 ms |
doris-robot
commented
Apr 14, 2024
TPC-DS: Total hot run time: 184601 ms |
doris-robot
commented
Apr 14, 2024
ClickBench: Total hot run time: 30.2 s |
doris-robot
commented
Apr 14, 2024
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
DarvenDuan
commented
Apr 14, 2024
run buildall |
doris-robot
commented
Apr 14, 2024
TPC-H: Total hot run time: 38061 ms |
doris-robot
commented
Apr 14, 2024
TPC-DS: Total hot run time: 183526 ms |
doris-robot
commented
Apr 14, 2024
ClickBench: Total hot run time: 30.35 s |
doris-robot
commented
Apr 14, 2024
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
26c6eeb to
e005f3eComparec932047 to
d2150a8CompareDarvenDuan
commented
Apr 17, 2024
run p0 |
DarvenDuan
commented
Apr 17, 2024
run buildall |
doris-robot
commented
Apr 17, 2024
TPC-H: Total hot run time: 38329 ms |
doris-robot
commented
Apr 17, 2024
TPC-DS: Total hot run time: 186263 ms |
doris-robot
commented
Apr 17, 2024
ClickBench: Total hot run time: 30.35 s |
DarvenDuan
commented
Apr 17, 2024
run p0 |
doris-robot
commented
Apr 17, 2024
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
starocean999
commented
May 13, 2024
Generally, we can only fix the bug for nereids planner, unless there is a strong needs for branch 2.0.(the old planner will be discarded very soon). And we should consider not only MAX, MIN, SUM and also other agg types like HLL_UNION, BITMAP_UNION, QUANTILE_UNION and GENERIC(agg_state related) |
da53339 to
3d41b98Compare3d41b98 to
d4a168dComparestarocean999
commented
May 16, 2024
run buildall |
DarvenDuan
commented
May 16, 2024
run p0 |
PR approved by at least one committer and no changes requested. |
…ed table (#33630) support auto aggregation for querying detail data of random distributed table: the same key column will return only one row.
…ed table (#33630) support auto aggregation for querying detail data of random distributed table: the same key column will return only one row.
## Proposed changes Bug description: In PR #33630, Doris supports auto aggregation for random distributed table, but it not only effects query statements, so if we delete from a random distributed table, will get an error because of unexpectedly rewriting. ``` CREATE TABLE `test_tbl` ( `k` INT NULL, `v` BIGINT SUM NULL ) ENGINE=OLAP AGGREGATE KEY(`k`) DISTRIBUTED BY RANDOM BUCKETS AUTO; mysql > delete from test_tbl where k=1; ERROR 1105 (HY000): errCode = 2, detailMessage = Where clause only supports compound predicate, binary predicate, is_null predicate or in predicate. ``` fix: Check whether it is a query statement before rewriting.
## Proposed changes Bug description: In PR #33630, Doris supports auto aggregation for random distributed table, but it not only effects query statements, so if we delete from a random distributed table, will get an error because of unexpectedly rewriting. ``` CREATE TABLE `test_tbl` ( `k` INT NULL, `v` BIGINT SUM NULL ) ENGINE=OLAP AGGREGATE KEY(`k`) DISTRIBUTED BY RANDOM BUCKETS AUTO; mysql > delete from test_tbl where k=1; ERROR 1105 (HY000): errCode = 2, detailMessage = Where clause only supports compound predicate, binary predicate, is_null predicate or in predicate. ``` fix: Check whether it is a query statement before rewriting.
…ed table (apache#33630) support auto aggregation for querying detail data of random distributed table: the same key column will return only one row.
## Proposed changes Bug description: In PR apache#33630, Doris supports auto aggregation for random distributed table, but it not only effects query statements, so if we delete from a random distributed table, will get an error because of unexpectedly rewriting. ``` CREATE TABLE `test_tbl` ( `k` INT NULL, `v` BIGINT SUM NULL ) ENGINE=OLAP AGGREGATE KEY(`k`) DISTRIBUTED BY RANDOM BUCKETS AUTO; mysql > delete from test_tbl where k=1; ERROR 1105 (HY000): errCode = 2, detailMessage = Where clause only supports compound predicate, binary predicate, is_null predicate or in predicate. ``` fix: Check whether it is a query statement before rewriting.
Proposed changes
Issue Number: close #xxx
support auto aggregation for querying detail data of random distributed table: the same key column will return only one row.
step 1: fix legacy planner (√)
step 2: fix nereids planner (√)
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...