Uh oh!
There was an error while loading. Please reload this page.
[feature](mtmv) Support variants rewrite by materialized view - #37929
Merged
morrySnow merged 9 commits intoJul 24, 2024
Conversation
doris-robot
commented
Jul 16, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
seawinde
commented
Jul 16, 2024
MemberAuthor
run buildall |
doris-robot
commented
Jul 16, 2024
TPC-H: Total hot run time: 39642 ms |
doris-robot
commented
Jul 16, 2024
TPC-DS: Total hot run time: 175235 ms |
doris-robot
commented
Jul 16, 2024
ClickBench: Total hot run time: 30.51 s |
seawindeforce-pushed
the
support_variants_rewrite_by_mv
branch
from
July 17, 2024 05:53
2815a06 to
e7dc397Compare
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?
MemberAuthor
There was a problem hiding this comment.
yeah, this will push into scan node again by RBO
seawinde
commented
Jul 17, 2024
MemberAuthor
run buildall |
doris-robot
commented
Jul 17, 2024
TPC-H: Total hot run time: 40078 ms |
doris-robot
commented
Jul 17, 2024
TPC-DS: Total hot run time: 173633 ms |
doris-robot
commented
Jul 17, 2024
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. |
seawindeforce-pushed
the
support_variants_rewrite_by_mv
branch
from
July 19, 2024 01:50
294e32b to
31b9b5aCompareseawinde
commented
Jul 19, 2024
MemberAuthor
run buildall |
doris-robot
commented
Jul 19, 2024
TPC-H: Total hot run time: 40118 ms |
doris-robot
commented
Jul 19, 2024
TPC-DS: Total hot run time: 176035 ms |
doris-robot
commented
Jul 19, 2024
ClickBench: Total hot run time: 31.13 s |
seawindeforce-pushed
the
support_variants_rewrite_by_mv
branch
from
July 22, 2024 12:32
91983a7 to
2398c5fCompareseawinde
commented
Jul 22, 2024
MemberAuthor
run buildall |
doris-robot
commented
Jul 22, 2024
TPC-H: Total hot run time: 40190 ms |
doris-robot
commented
Jul 22, 2024
TPC-DS: Total hot run time: 174022 ms |
doris-robot
commented
Jul 22, 2024
ClickBench: Total hot run time: 30.4 s |
seawinde
commented
Jul 22, 2024
MemberAuthor
run buildall |
doris-robot
commented
Jul 22, 2024
TPC-H: Total hot run time: 39745 ms |
doris-robot
commented
Jul 22, 2024
TPC-DS: Total hot run time: 174339 ms |
doris-robot
commented
Jul 22, 2024
ClickBench: Total hot run time: 30.58 s |
seawinde
commented
Jul 23, 2024
MemberAuthor
run buildall |
doris-robot
commented
Jul 23, 2024
TPC-H: Total hot run time: 40281 ms |
doris-robot
commented
Jul 23, 2024
TPC-DS: Total hot run time: 173736 ms |
doris-robot
commented
Jul 23, 2024
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
HappenLee pushed a commit
to HappenLee/incubator-doris
that referenced
this pull request
Apr 24, 2026
…#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;
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 freeto 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