Uh oh!
There was an error while loading. Please reload this page.
[Bug](distinct) fix distinct function with over return error result - #51875
Conversation
Thearas
commented
Jun 18, 2025
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
zhangstar333
commented
Jun 18, 2025
run buildall |
doris-robot
commented
Jun 18, 2025
TPC-H: Total hot run time: 33740 ms |
doris-robot
commented
Jun 18, 2025
TPC-DS: Total hot run time: 192588 ms |
doris-robot
commented
Jun 18, 2025
ClickBench: Total hot run time: 29.38 s |
hello-stephen
commented
Jun 18, 2025
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
Jun 18, 2025
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
1 similar comment
hello-stephen
commented
Jun 18, 2025
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
zhangstar333
commented
Jun 18, 2025
run buildall |
doris-robot
commented
Jun 18, 2025
TPC-H: Total hot run time: 33823 ms |
doris-robot
commented
Jun 18, 2025
TPC-DS: Total hot run time: 185993 ms |
doris-robot
commented
Jun 18, 2025
ClickBench: Total hot run time: 29.28 s |
doris-robot
commented
Jun 18, 2025
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
Jun 18, 2025
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
1 similar comment
hello-stephen
commented
Jun 18, 2025
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
Uh oh!
There was an error while loading. Please reload this page.
zhangstar333
commented
Jun 19, 2025
run buildall |
zhangstar333
commented
Jun 19, 2025
run buildall |
doris-robot
commented
Jun 19, 2025
TPC-H: Total hot run time: 33902 ms |
doris-robot
commented
Jun 19, 2025
TPC-DS: Total hot run time: 185985 ms |
doris-robot
commented
Jun 19, 2025
ClickBench: Total hot run time: 29.72 s |
doris-robot
commented
Jun 19, 2025
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
Jun 19, 2025
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
doris-robot
commented
Jun 24, 2025
ClickBench: Total hot run time: 29.69 s |
hello-stephen
commented
Jun 24, 2025
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
Jun 24, 2025
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
…51875) ### What problem does this PR solve? Problem Summary: before the result is not correctly, as after insert the rows, should reset all state of nested function. So the result of the next line will not be affected by the previous one ``` mysql> select id, v1, multi_distinct_group_concat(v2) over() from multi; +------+------+----------------------------------------+ | id | v1 | multi_distinct_group_concat(v2) over() | +------+------+----------------------------------------+ | 3 | 1 | a | | 1 | 1 | a,a | | 1 | 1 | a,a,a | | 2 | 1 | a,a,a,a | +------+------+----------------------------------------+ 4 rows in set (0.21 sec) mysql> select id, v1, multi_distinct_sum(v1) over() from multi; +------+------+-------------------------------+ | id | v1 | multi_distinct_sum(v1) over() | +------+------+-------------------------------+ | 1 | 1 | 1 | | 1 | 1 | 2 | | 2 | 1 | 3 | | 3 | 1 | 4 | +------+------+-------------------------------+ 4 rows in set (0.06 sec) ```
…51875) ### What problem does this PR solve? Problem Summary: before the result is not correctly, as after insert the rows, should reset all state of nested function. So the result of the next line will not be affected by the previous one ``` mysql> select id, v1, multi_distinct_group_concat(v2) over() from multi; +------+------+----------------------------------------+ | id | v1 | multi_distinct_group_concat(v2) over() | +------+------+----------------------------------------+ | 3 | 1 | a | | 1 | 1 | a,a | | 1 | 1 | a,a,a | | 2 | 1 | a,a,a,a | +------+------+----------------------------------------+ 4 rows in set (0.21 sec) mysql> select id, v1, multi_distinct_sum(v1) over() from multi; +------+------+-------------------------------+ | id | v1 | multi_distinct_sum(v1) over() | +------+------+-------------------------------+ | 1 | 1 | 1 | | 1 | 1 | 2 | | 2 | 1 | 3 | | 3 | 1 | 4 | +------+------+-------------------------------+ 4 rows in set (0.06 sec) ```
…51875) ### What problem does this PR solve? Problem Summary: before the result is not correctly, as after insert the rows, should reset all state of nested function. So the result of the next line will not be affected by the previous one ``` mysql> select id, v1, multi_distinct_group_concat(v2) over() from multi; +------+------+----------------------------------------+ | id | v1 | multi_distinct_group_concat(v2) over() | +------+------+----------------------------------------+ | 3 | 1 | a | | 1 | 1 | a,a | | 1 | 1 | a,a,a | | 2 | 1 | a,a,a,a | +------+------+----------------------------------------+ 4 rows in set (0.21 sec) mysql> select id, v1, multi_distinct_sum(v1) over() from multi; +------+------+-------------------------------+ | id | v1 | multi_distinct_sum(v1) over() | +------+------+-------------------------------+ | 1 | 1 | 1 | | 1 | 1 | 2 | | 2 | 1 | 3 | | 3 | 1 | 4 | +------+------+-------------------------------+ 4 rows in set (0.06 sec) ```
…51875) ### What problem does this PR solve? Problem Summary: before the result is not correctly, as after insert the rows, should reset all state of nested function. So the result of the next line will not be affected by the previous one ``` mysql> select id, v1, multi_distinct_group_concat(v2) over() from multi; +------+------+----------------------------------------+ | id | v1 | multi_distinct_group_concat(v2) over() | +------+------+----------------------------------------+ | 3 | 1 | a | | 1 | 1 | a,a | | 1 | 1 | a,a,a | | 2 | 1 | a,a,a,a | +------+------+----------------------------------------+ 4 rows in set (0.21 sec) mysql> select id, v1, multi_distinct_sum(v1) over() from multi; +------+------+-------------------------------+ | id | v1 | multi_distinct_sum(v1) over() | +------+------+-------------------------------+ | 1 | 1 | 1 | | 1 | 1 | 2 | | 2 | 1 | 3 | | 3 | 1 | 4 | +------+------+-------------------------------+ 4 rows in set (0.06 sec) ```
…51875) ### What problem does this PR solve? Problem Summary: before the result is not correctly, as after insert the rows, should reset all state of nested function. So the result of the next line will not be affected by the previous one ``` mysql> select id, v1, multi_distinct_group_concat(v2) over() from multi; +------+------+----------------------------------------+ | id | v1 | multi_distinct_group_concat(v2) over() | +------+------+----------------------------------------+ | 3 | 1 | a | | 1 | 1 | a,a | | 1 | 1 | a,a,a | | 2 | 1 | a,a,a,a | +------+------+----------------------------------------+ 4 rows in set (0.21 sec) mysql> select id, v1, multi_distinct_sum(v1) over() from multi; +------+------+-------------------------------+ | id | v1 | multi_distinct_sum(v1) over() | +------+------+-------------------------------+ | 1 | 1 | 1 | | 1 | 1 | 2 | | 2 | 1 | 3 | | 3 | 1 | 4 | +------+------+-------------------------------+ 4 rows in set (0.06 sec) ```
…51875) ### What problem does this PR solve? Problem Summary: before the result is not correctly, as after insert the rows, should reset all state of nested function. So the result of the next line will not be affected by the previous one ``` mysql> select id, v1, multi_distinct_group_concat(v2) over() from multi; +------+------+----------------------------------------+ | id | v1 | multi_distinct_group_concat(v2) over() | +------+------+----------------------------------------+ | 3 | 1 | a | | 1 | 1 | a,a | | 1 | 1 | a,a,a | | 2 | 1 | a,a,a,a | +------+------+----------------------------------------+ 4 rows in set (0.21 sec) mysql> select id, v1, multi_distinct_sum(v1) over() from multi; +------+------+-------------------------------+ | id | v1 | multi_distinct_sum(v1) over() | +------+------+-------------------------------+ | 1 | 1 | 1 | | 1 | 1 | 2 | | 2 | 1 | 3 | | 3 | 1 | 4 | +------+------+-------------------------------+ 4 rows in set (0.06 sec) ```
…ror result apache#51875 (apache#52312) Cherry-picked from apache#51875 Co-authored-by: zhangstar333 <zhangsida@selectdb.com>
What problem does this PR solve?
Problem Summary:
before the result is not correctly, as after insert the rows, should reset all state of nested function.
So the result of the next line will not be affected by the previous one
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)