[fix](mtmv) Fix generate hyper graph wrongly when has filter which can not push down#43539
Merged
morrySnow merged 3 commits intoapache:masterfrom Nov 14, 2024
Merged
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Member
Author
|
run buildall |
Member
Author
|
run buildall |
TPC-H: Total hot run time: 52043 ms |
Contributor
|
run performance |
morrySnow
previously approved these changes
Nov 13, 2024
Contributor
|
PR approved by at least one committer and no changes requested. |
Contributor
|
PR approved by anyone and no changes requested. |
xzj7019
reviewed
Nov 13, 2024
| Set<Expression> queryPredicates, | ||
| SlotMapping queryToViewMapping, | ||
| StructInfo queryStructInfo, | ||
| StructInfo viwStructInfo, |
Contributor
There was a problem hiding this comment.
viwStructInfo -> viewStructInfo
xzj7019
approved these changes
Nov 13, 2024
Member
Author
|
run buildall |
morrySnow
approved these changes
Nov 14, 2024
Contributor
|
PR approved by at least one committer and no changes requested. |
github-actions bot
pushed a commit
that referenced
this pull request
Nov 14, 2024
…n not push down (#43539) ### What problem does this PR solve? Related PR: #28006 Problem Summary: When query is as following: select o_orderdate, o_shippriority, o_comment, l_orderkey, l_partkey from orders left join lineitem on l_orderkey = o_orderkey left join partsupp on ps_partkey = l_partkey and l_suppkey = ps_suppkey; hyper graph is as following: this` leftExtendedNodes` Shoule be contained both orders and lineitem, which should be 3, but now is 2 This may cause associate wrongly when use hyper graph and materialized view which depends on it rewrite wrongly ### Release note Fix generate hyper graph wrongly when has filter which can not push down
github-actions bot
pushed a commit
that referenced
this pull request
Nov 14, 2024
…n not push down (#43539) ### What problem does this PR solve? Related PR: #28006 Problem Summary: When query is as following: select o_orderdate, o_shippriority, o_comment, l_orderkey, l_partkey from orders left join lineitem on l_orderkey = o_orderkey left join partsupp on ps_partkey = l_partkey and l_suppkey = ps_suppkey; hyper graph is as following: this` leftExtendedNodes` Shoule be contained both orders and lineitem, which should be 3, but now is 2 This may cause associate wrongly when use hyper graph and materialized view which depends on it rewrite wrongly ### Release note Fix generate hyper graph wrongly when has filter which can not push down
hubgeter
pushed a commit
to hubgeter/doris
that referenced
this pull request
Mar 12, 2025
…h wrongly when has filter (apache#3649) pr: apache#43531 commitId: b2e42f2 pr: apache#43539 commitId: eb6c00c b0cecf4 --------- Co-authored-by: seawinde <wusi@selectdb.com>
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.
What problem does this PR solve?
When query is as following:
hyper graph is as following:

this
leftExtendedNodesShoule be contained both orders and lineitem, which should be 3, but now is 2Issue Number: close #xxx
Related PR: #28006
Problem Summary:
This may cause associate wrongly when use hyper graph and materialized view which depends on it rewrite wrongly
Release note
Fix generate hyper graph wrongly when has filter which can not push down
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)