-
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
[Enhancement] remove partition predicate from cardinality estimation (backport #50631) #50688
Conversation
Cherry-pick of a2db4b6 has failed:
To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
@mergify[bot]: Backport conflict, please reslove the conflict and resubmit the pr |
…50631) Signed-off-by: Murphy <[email protected]> (cherry picked from commit a2db4b6)
db463bb
to
8708ef8
Compare
Quality Gate passedIssues Measures |
…(backport StarRocks#50631) (StarRocks#50688) Co-authored-by: Murphy <[email protected]>
Why I'm doing:
What I'm doing:
Partition predicate has been applied to partition prune, which already contributed to the cardinality of scan node, so it should not be considered as predicate to estimate cardinality again, otherwise the estimation will be incorrect.
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:
This is an automatic backport of pull request #50631 done by [Mergify](https://mergify.com). ## Why I'm doing:
What I'm doing:
Partition predicate has been applied to partition prune, which already contributed to the cardinality of scan node, so it should not be considered as predicate to estimate cardinality again, otherwise the estimation will be incorrect.
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: