-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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] RangePredicateExtractor discard predicates mistakenly #50854
Conversation
@@ -57,6 +57,7 @@ private ScalarOperator rewrite(ScalarOperator predicate, boolean onlyExtractColu | |||
|
|||
Set<ScalarOperator> conjuncts = Sets.newLinkedHashSet(); | |||
conjuncts.addAll(Utils.extractConjuncts(predicate)); | |||
predicate = Utils.compoundAnd(conjuncts); |
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 do this? only to clone it?
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.
Eliminate duplicates of predicates.
Signed-off-by: satanson <[email protected]>
5b62259
to
f73e7bd
Compare
Quality Gate passedIssues Measures |
[Java-Extensions Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[FE Incremental Coverage Report]✅ pass : 1 / 1 (100.00%) file detail
|
[BE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
@Mergifyio backport branch-3.3 |
@Mergifyio backport branch-3.2 |
@Mergifyio backport branch-3.1 |
@Mergifyio backport branch-3.0 |
✅ Backports have been created
|
@Mergifyio backport branch-2.5 |
✅ Backports have been created
|
Signed-off-by: satanson <[email protected]> (cherry picked from commit cffaa19) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/sql/optimizer/rewrite/ScalarRangePredicateExtractor.java # fe/fe-core/src/test/java/com/starrocks/sql/optimizer/rewrite/ScalarOperatorRewriterTest.java # fe/fe-core/src/test/java/com/starrocks/sql/plan/PruneUKFKJoinRuleTest.java # fe/fe-core/src/test/java/com/starrocks/sql/plan/SubqueryTest.java
Signed-off-by: satanson <[email protected]> (cherry picked from commit cffaa19) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/sql/optimizer/rewrite/ScalarRangePredicateExtractor.java # fe/fe-core/src/test/java/com/starrocks/sql/optimizer/rewrite/ScalarOperatorRewriterTest.java # fe/fe-core/src/test/java/com/starrocks/sql/plan/PruneUKFKJoinRuleTest.java # fe/fe-core/src/test/java/com/starrocks/sql/plan/SubqueryTest.java
…ort #50854) Signed-off-by: satanson <[email protected]>
…ort #50854) Signed-off-by: satanson <[email protected]>
…ort #50854) Signed-off-by: satanson <[email protected]>
…ort #50854) Signed-off-by: satanson <[email protected]>
…ort #50854) Signed-off-by: satanson <[email protected]>
…ort #50854) Signed-off-by: satanson <[email protected]>
…ort #50854) (#50886) Signed-off-by: satanson <[email protected]>
…ort #50854) Signed-off-by: satanson <[email protected]>
…ocks#50854) Signed-off-by: satanson <[email protected]>
…ort #50854) Signed-off-by: satanson <[email protected]>
…ort #50854) (#50887) Signed-off-by: satanson <[email protected]>
…ort #50854) (#50896) Signed-off-by: satanson <[email protected]>
…ort #50854) (#50898) Signed-off-by: satanson <[email protected]>
…ort #50854) (#50906) Signed-off-by: satanson <[email protected]>
…ocks#50854) Signed-off-by: satanson <[email protected]> Signed-off-by: zhiminr.ren <[email protected]>
Why I'm doing:
Fix bug: #50311
What I'm doing:
Fixes #issue
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: