[feature](mtmv) Support variants rewrite by materialized view#37929
Merged
morrySnow merged 9 commits intoapache:masterfrom Jul 24, 2024
Merged
[feature](mtmv) Support variants rewrite by materialized view#37929morrySnow merged 9 commits intoapache:masterfrom
morrySnow merged 9 commits intoapache:masterfrom
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 |
TPC-H: Total hot run time: 39642 ms |
TPC-DS: Total hot run time: 175235 ms |
ClickBench: Total hot run time: 30.51 s |
2815a06 to
e7dc397
Compare
morrySnow
reviewed
Jul 17, 2024
Comment on lines
+87
to
+95
| if (targetSlot == null) { | ||
| continue; | ||
| } |
Contributor
There was a problem hiding this comment.
add comment to explain why not print warn log when data type is variant
| } | ||
| if (minExpr != null) { | ||
| targetToTargetReplacementMappingQueryBased.put(queryNameEntry.getValue(), | ||
| constructElementAt(minExpr, minCompensateName)); |
Contributor
There was a problem hiding this comment.
after rewrite, these new element_at will be push into scan node too?
Member
Author
There was a problem hiding this comment.
yeah, this will push into scan node again by RBO
Member
Author
|
run buildall |
TPC-H: Total hot run time: 40078 ms |
TPC-DS: Total hot run time: 173633 ms |
ClickBench: Total hot run time: 30.88 s |
morrySnow
previously approved these changes
Jul 18, 2024
Contributor
|
PR approved by at least one committer and no changes requested. |
Contributor
|
PR approved by anyone and no changes requested. |
294e32b to
31b9b5a
Compare
Member
Author
|
run buildall |
TPC-H: Total hot run time: 40118 ms |
TPC-DS: Total hot run time: 176035 ms |
ClickBench: Total hot run time: 31.13 s |
91983a7 to
2398c5f
Compare
Member
Author
|
run buildall |
TPC-H: Total hot run time: 40190 ms |
TPC-DS: Total hot run time: 174022 ms |
ClickBench: Total hot run time: 30.4 s |
Member
Author
|
run buildall |
TPC-H: Total hot run time: 39745 ms |
TPC-DS: Total hot run time: 174339 ms |
ClickBench: Total hot run time: 30.58 s |
Member
Author
|
run buildall |
TPC-H: Total hot run time: 40281 ms |
TPC-DS: Total hot run time: 173736 ms |
ClickBench: Total hot run time: 30.9 s |
morrySnow
approved these changes
Jul 24, 2024
dataroaring
pushed a commit
that referenced
this pull request
Jul 24, 2024
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;
seawinde
added a commit
to seawinde/doris
that referenced
this pull request
Aug 6, 2024
…#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;
Closed
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
Support variants rewrite by materialized view
Such as the mv def is as following:
the query following can rewrite successfully and the data is right