-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](mtmv) Fix partition mv rewrite result wrong #35236
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
[fix](mtmv) Fix partition mv rewrite result wrong #35236
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
TPC-H: Total hot run time: 41096 ms |
|
run buildall |
TPC-H: Total hot run time: 41816 ms |
TPC-DS: Total hot run time: 172210 ms |
ClickBench: Total hot run time: 30.99 s |
b252757 to
cfb4a43
Compare
|
run buildall |
TPC-H: Total hot run time: 40832 ms |
TPC-DS: Total hot run time: 168496 ms |
ClickBench: Total hot run time: 30.42 s |
|
|
||
| sleep(5000) | ||
| sql "SET enable_materialized_view_rewrite=false" | ||
| order_qt_query_5_0_before "${all_partition_sql}" |
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.
use meaningful case name
| (1, 2, 3, 4, 5.5, 6.5, 7.5, 8.5, 'o', 'k', '2023-10-21', '2023-10-21', '2023-10-21', 'a', 'b', 'yyyyyyyyy'); | ||
| """ | ||
|
|
||
| sleep(5000) |
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.
do not use sleep, real check what u want to wait
4bc1130 to
aeb9702
Compare
|
run buildall |
1 similar comment
|
run buildall |
TPC-H: Total hot run time: 41790 ms |
TPC-DS: Total hot run time: 171596 ms |
ClickBench: Total hot run time: 30.76 s |
|
run feut |
8867d3f to
6ec923e
Compare
|
run buildall |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
…w if related baseTable add partition
6ec923e to
0b55c46
Compare
|
run buildall |
TPC-H: Total hot run time: 41875 ms |
TPC-DS: Total hot run time: 168944 ms |
ClickBench: Total hot run time: 30.3 s |
zfr9527
left a comment
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.
LGTM
this is brought by #33800 if mv is partitioned materialzied view, the data will be wrong by using the hited materialized view when the paritions in related base partiton table are deleted, created and so on. this fix the problem. if **SET enable_materialized_view_union_rewrite=true;** this will use the materializd view and make sure the data is corrent if **SET enable_materialized_view_union_rewrite=false;** this will query base table directly to make sure the data is right
this is brought by #33800 if mv is partitioned materialzied view, the data will be wrong by using the hited materialized view when the paritions in related base partiton table are deleted, created and so on. this fix the problem. if **SET enable_materialized_view_union_rewrite=true;** this will use the materializd view and make sure the data is corrent if **SET enable_materialized_view_union_rewrite=false;** this will query base table directly to make sure the data is right
Proposed changes
this is brought by #33800
if mv is partitioned materialzied view,
the data will be wrong by using the hited materialized view when the paritions in related base partiton table are deleted, created and so on.
this fix the problem.
if SET enable_materialized_view_union_rewrite=true; this will use the materializd view and make sure the data is corrent
if SET enable_materialized_view_union_rewrite=false; this will query base table directly to make sure the data is right
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...