-
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
[feature](mtmv) Support querying rewrite by materialized view when insert and insert overwrite dml #38115
Conversation
…sert and insert overwrite dml
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
run buildall |
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
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
TPC-H: Total hot run time: 39676 ms
|
TPC-DS: Total hot run time: 174071 ms
|
ClickBench: Total hot run time: 30.39 s
|
…sert and insert overwrite dml (#38115) Support querying rewrite by materialized view when DML such as insert and insert overwrite , into outfile etc. this is default enable, you can disable it by `set enable_dml_materialized_view_rewrite = false` and the `enable_materialized_view_rewrite` is only control DQL. It would not rewrite by materialized view when query sql use external table. If you want rewrite by materialized view when use external table in DML, you should `set enable_dml_materialized_view_rewrite_when_base_table_unawareness = true;` this is default false.
…sert and insert overwrite dml (apache#38115) Support querying rewrite by materialized view when DML such as insert and insert overwrite , into outfile etc. this is default enable, you can disable it by `set enable_dml_materialized_view_rewrite = false` and the `enable_materialized_view_rewrite` is only control DQL. It would not rewrite by materialized view when query sql use external table. If you want rewrite by materialized view when use external table in DML, you should `set enable_dml_materialized_view_rewrite_when_base_table_unawareness = true;` this is default false.
Proposed changes
Support querying rewrite by materialized view when DML such as insert and insert overwrite , into outfile etc.
this is default enable, you can disable it by
set enable_dml_materialized_view_rewrite = false
and the
enable_materialized_view_rewrite
is only control DQL.It would not rewrite by materialized view when query sql use external table.
If you want rewrite by materialized view when use external table in DML,
you should
set enable_dml_materialized_view_rewrite_when_base_table_unawareness = true;
this is default false.
the pr is the replacement for #37561