pick some pr from to branch21 #38115 #38008 #37929#38940
Merged
yiguolei merged 5 commits intoapache:branch-2.1from Aug 7, 2024
Merged
pick some pr from to branch21 #38115 #38008 #37929#38940yiguolei merged 5 commits intoapache:branch-2.1from
yiguolei merged 5 commits intoapache:branch-2.1from
Conversation
…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.
…iew (apache#38008) Support to use cast when create sync materialized view Such as sync mv def is as following: you can use cast(FLOOR(MINUTE(`time`) / 15) as decimal(9, 0)) in mv def which is not allowed before. CREATE MATERIALIZED VIEW sync_mv AS SELECT decision, code, app_name, event_id, event_type, date_trunc(time, 'minute'), DATE_FORMAT( `time`, '%Y-%m-%d' ), cast(FLOOR(MINUTE(time) / 15) as decimal(9, 0)), count(id) as cnt from test group by code, app_name, event_id, event_type, date_trunc(time, 'minute'), decision, DATE_FORMAT(time, '%Y-%m-%d'), cast(FLOOR(MINUTE(`time`) / 15) as decimal(9, 0));
…#37929) Support variants rewrite by materialized view Such as the mv def is as following: CREATE MATERIALIZED VIEW test1 BUILD IMMEDIATE REFRESH AUTO ON MANUAL DISTRIBUTED BY RANDOM BUCKETS 2 PROPERTIES ('replication_num' = '1') as SELECT id, type, actor, payload, payload['pull_request'] FROM github_events1; the query following can rewrite successfully and the data is right SELECT id, type, floor(cast(actor['id'] as int) + 100.5), actor['display_login'], payload['pull_request']['id'] FROM github_events1;
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
Member
Author
|
run buildall |
1 similar comment
Member
Author
|
run buildall |
27df2d7 to
c536771
Compare
Member
Author
|
run buildall |
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.
Proposed changes
pr: #38115
commitId: 2b29288
pr: #38008
commitId: c6b924d
pr: #37929
commitId: d44fcdc