[fix](mtmv) Fix data wrong when query with table operator such as TABLESAMPLE or tablet and so on#43030
Merged
morrySnow merged 6 commits intoapache:masterfrom Dec 2, 2024
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
Member
Author
|
run buildall |
Member
Author
|
run buildall |
eda8d89 to
1767731
Compare
Member
Author
|
run buildall |
1 similar comment
Member
Author
|
run buildall |
morrySnow
previously approved these changes
Nov 7, 2024
Contributor
|
PR approved by at least one committer and no changes requested. |
Contributor
|
PR approved by anyone and no changes requested. |
Contributor
|
run cloud_p0 |
12107f2 to
db7ec16
Compare
Member
Author
|
run buildall |
db7ec16 to
50b5c49
Compare
Contributor
|
run buildall |
Contributor
|
run p0 |
50b5c49 to
3d3311d
Compare
Contributor
|
run buildall |
5e8002c to
27daea3
Compare
Member
Author
|
run buildall |
27daea3 to
793bbe7
Compare
Member
Author
|
run buildall |
morrySnow
approved these changes
Dec 2, 2024
github-actions bot
pushed a commit
that referenced
this pull request
Dec 2, 2024
…LESAMPLE or tablet and so on (#43030) Related PR: #28064 Materialized view is as following: CREATE MATERIALIZED VIEW mv1 BUILD IMMEDIATE REFRESH AUTO ON MANUAL DISTRIBUTED BY RANDOM BUCKETS 2 PROPERTIES ('replication_num' = '1') AS select * from orders If run query as following, should rewrite fail by materialized view above to make sure data correctness select * from orders TABLET(110); select * from orders index query_index_test; select * from orders TABLESAMPLE(20 percent); select * from orders_partition PARTITION (day_2); At before, this would rewrite by materialized view succesfully and the result data is wrong, This pr fix this.
seawinde
added a commit
to seawinde/doris
that referenced
this pull request
Dec 6, 2024
…LESAMPLE or tablet and so on (apache#43030) Related PR: apache#28064 Materialized view is as following: CREATE MATERIALIZED VIEW mv1 BUILD IMMEDIATE REFRESH AUTO ON MANUAL DISTRIBUTED BY RANDOM BUCKETS 2 PROPERTIES ('replication_num' = '1') AS select * from orders If run query as following, should rewrite fail by materialized view above to make sure data correctness select * from orders TABLET(110); select * from orders index query_index_test; select * from orders TABLESAMPLE(20 percent); select * from orders_partition PARTITION (day_2); At before, this would rewrite by materialized view succesfully and the result data is wrong, This pr fix this.
16 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Materialized view is as following:
CREATE MATERIALIZED VIEW mv1 BUILD IMMEDIATE REFRESH AUTO ON MANUAL DISTRIBUTED BY RANDOM BUCKETS 2 PROPERTIES ('replication_num' = '1') AS select * from ordersIf run query as following, should rewrite fail by materialized view above to make sure data correctness
At before, this would rewrite by materialized view succesfully and the result data is wrong, This pr fix this.
Issue Number: close #xxx
Related PR: #28064
Problem Summary:
Check List (For Committer)
Test
Behavior changed:
Does this need documentation?
Release note
None
Check List (For Reviewer who merge this PR)