-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[enhance](mtmv)support replace materialized view #36749
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: 40179 ms
|
TPC-DS: Total hot run time: 173914 ms
|
ClickBench: Total hot run time: 31.96 s
|
run p0 |
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.
LTGM
} | ||
|
||
sql """ | ||
alter MATERIALIZED VIEW ${mvName1} replace with MATERIALIZED VIEW ${mvName2}; |
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.
Will an exception occur when this statement is executed while mtmv is being updated?
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.
no,will waiting for the lock in very little time
PR approved by anyone and no changes requested. |
PR approved by at least one committer and no changes requested. |
- support alter MATERIALIZED VIEW mv1 replace with MATERIALIZED VIEW mv2 PROPERTIES('swap' = 'false'); - fix rename MATERIALIZED VIEW not change state of high level MATERIALIZED VIEW Logic is the same as ALTER-TABLE-REPLACE. more detail pelase read doris document. The difference is that this statement can only operate on materialized views
- support alter MATERIALIZED VIEW mv1 replace with MATERIALIZED VIEW mv2 PROPERTIES('swap' = 'false'); - fix rename MATERIALIZED VIEW not change state of high level MATERIALIZED VIEW Logic is the same as ALTER-TABLE-REPLACE. more detail pelase read doris document. The difference is that this statement can only operate on materialized views
alter MATERIALIZED VIEW mv1 replace with MATERIALIZED VIEW mv2 PROPERTIES('swap' = 'false');
Logic is the same as: https://doris.apache.org/zh-CN/docs/dev/sql-manual/sql-statements/Data-Definition-Statements/Alter/ALTER-TABLE-REPLACE/
The difference is that this statement can only operate on materialized views