-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[BugFix] fix invalid partition predicate bug #19373
[BugFix] fix invalid partition predicate bug #19373
Conversation
119d3d1
to
153925f
Compare
Signed-off-by: ABingHuang <[email protected]>
Signed-off-by: ABingHuang <[email protected]>
Signed-off-by: ABingHuang <[email protected]>
d77d906
to
6187e02
Compare
...om/starrocks/sql/optimizer/rule/transformation/materialization/MaterializedViewRewriter.java
Show resolved
Hide resolved
...in/java/com/starrocks/sql/optimizer/rule/transformation/materialization/RangeSimplifier.java
Outdated
Show resolved
Hide resolved
...om/starrocks/sql/optimizer/rule/transformation/materialization/MaterializedViewRewriter.java
Show resolved
Hide resolved
Signed-off-by: ABingHuang <[email protected]>
@@ -1155,7 +1155,13 @@ private PredicateSplit getCompensationPredicates(RewriteContext rewriteContext, | |||
if (srcPu == null && targetPu != null) { | |||
// query: empid < 5 | |||
// mv: empid < 5 or salary > 100 | |||
srcPu = Utils.compoundAnd(compensationEqualPredicate, compensationPr); | |||
if (!isQueryAgainstView) { | |||
// compensationEqualPredicate and compensationPr is based on query, need to change it to view based |
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.
Why ViewAgainsQuery need to rewrite to view based?
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.
because compensationPr is now based on query, but we need predicates based on views as input
...in/java/com/starrocks/sql/optimizer/rule/transformation/materialization/RangeSimplifier.java
Outdated
Show resolved
Hide resolved
Signed-off-by: ABingHuang <[email protected]>
...in/java/com/starrocks/sql/optimizer/rule/transformation/materialization/RangeSimplifier.java
Outdated
Show resolved
Hide resolved
Signed-off-by: ABingHuang <[email protected]>
run starrocks_admit_test |
Signed-off-by: ABingHuang <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
run starrocks_admit_test |
run starrocks_be_unittest |
run starrocks_clang-format |
run starrocks_fe_unittest |
run all |
run starrocks_fe_unittest |
run starrocks_admit_test |
[FE PR Coverage Check]😍 pass : 34 / 35 (97.14%) file detail
|
Signed-off-by: ABingHuang <[email protected]>
Signed-off-by: ABingHuang <[email protected]>
Signed-off-by: ABingHuang <[email protected]>
Signed-off-by: ABingHuang <[email protected]>
Signed-off-by: ABingHuang <[email protected]>
Signed-off-by: ABingHuang <[email protected]>
Signed-off-by: ABingHuang <[email protected]>
Signed-off-by: ABingHuang <[email protected]>
Signed-off-by: ABingHuang <[email protected]>
What type of PR is this:
Which issues of this PR fixes :
Fixes #19352
Problem Summary(Required) :
fix invalid partition predicate bug by removing useless predicates.
Checklist:
Bugfix cherry-pick branch check: