-
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 partition min/max prune with null-value partitions #53235
[BugFix] fix partition min/max prune with null-value partitions #53235
Conversation
...n/java/com/starrocks/sql/optimizer/rule/transformation/PartitionColumnMinMaxRewriteRule.java
Show resolved
Hide resolved
d11e0d3
to
cf51d7e
Compare
* @return | ||
*/ | ||
@Override | ||
public List<Long> getNullValuePartitions() { |
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 not use Set<Long>
?
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.
fixed
f410d68
to
48e5e3f
Compare
48e5e3f
to
14328c8
Compare
Signed-off-by: Murphy <[email protected]>
Signed-off-by: Murphy <[email protected]>
Signed-off-by: Murphy <[email protected]>
Signed-off-by: Murphy <[email protected]>
Signed-off-by: Murphy <[email protected]>
Signed-off-by: Murphy <[email protected]>
14328c8
to
d9982da
Compare
Quality Gate passedIssues Measures |
[FE Incremental Coverage Report]✅ pass : 24 / 27 (88.89%) file detail
|
[Java-Extensions Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[BE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
@Mergifyio backport branch-3.4 |
@Mergifyio backport branch-3.3 |
@Mergifyio backport branch-3.2 |
✅ Backports have been created
|
✅ Backports have been created
|
✅ Backports have been created
|
Signed-off-by: Murphy <[email protected]> (cherry picked from commit 5bad4af)
Signed-off-by: Murphy <[email protected]> (cherry picked from commit 5bad4af)
Signed-off-by: Murphy <[email protected]> (cherry picked from commit 5bad4af) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/catalog/ListPartitionInfo.java # fe/fe-core/src/main/java/com/starrocks/catalog/RangePartitionInfo.java # fe/fe-core/src/main/java/com/starrocks/sql/optimizer/rule/transformation/PartitionColumnMinMaxRewriteRule.java # fe/fe-core/src/test/java/com/starrocks/sql/plan/PartitionPruneTest.java
…port #53235) (#53496) Co-authored-by: Murphy <[email protected]>
…port #53235) (#53495) Co-authored-by: Murphy <[email protected]>
Why I'm doing:
For this case, we need to rule out NULL partition when doing min/max partition pruning, because
min/max
aggregation function itself also rule out NULL values.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: