-
Notifications
You must be signed in to change notification settings - Fork 5.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
planner: improve index merge row count estimation #19040
planner: improve index merge row count estimation #19040
Conversation
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.
Should this one be merged after #18741?
Also, can we add some test cases to show the improvements?
5446f4f
to
e6b2fa8
Compare
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.
LGTM
@winoros PTAL~ |
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.
lgtm
/merge |
/run-all-tests |
@time-and-fate merge failed. |
/run-check_dev |
1 similar comment
/run-check_dev |
/run-all-tests |
Please help to merge this PR. @winoros |
/run-all-tests |
/run-check_dev |
1 similar comment
/run-check_dev |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@time-and-fate merge failed. |
What problem does this PR solve?
Issue Number: close #19039
Problem Summary: see the issue for details
What is changed and how it works?
What's Changed: Now we no longer add up row counts of all partial paths of index merge as the total row count when we're in
find_best_task()
. We calculate the total row count by usingSelectivity()
to calculate the selectivity of the DNF condition of index merge when we're inDeriveStats()
. Then put it in the unused CountAfterAccess field and use it directly infind_best_task()
.Check List
Release note