-
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: make the meaning of displayed estimated row count consistent with actual row count #38188
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/run-mysql-test tidb-test=pr/1988 |
1 similar comment
/run-mysql-test tidb-test=pr/1988 |
/run-mysql-test tidb-test=pr/1988 |
2 similar comments
/run-mysql-test tidb-test=pr/1988 |
/run-mysql-test tidb-test=pr/1988 |
/run-mysql-test tidb-test=pr/1988 |
5 similar comments
/run-mysql-test tidb-test=pr/1988 |
/run-mysql-test tidb-test=pr/1988 |
/run-mysql-test tidb-test=pr/1988 |
/run-mysql-test tidb-test=pr/1988 |
/run-mysql-test tidb-test=pr/1988 |
/run-check-dev |
/run-check-dev |
1 similar comment
/run-check-dev |
@@ -382,6 +382,7 @@ func postOptimize(sctx sessionctx.Context, plan PhysicalPlan) PhysicalPlan { | |||
plan = enableParallelApply(sctx, plan) | |||
handleFineGrainedShuffle(sctx, plan) | |||
checkPlanCacheable(sctx, plan) | |||
propagateProbeParents(plan, nil) |
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 we invoke this function only when sctx.GetSessionVars().StmtCtx.InExplainStmt == true
?
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.
No.
Because of features like slow query and statements summary, every execution plan is possible to be recorded and displayed.
Please resolve conflicts @time-and-fate |
/run-mysql-test tidb-test=pr/1988 |
1 similar comment
/run-mysql-test tidb-test=pr/1988 |
/run-mysql-test tidb-test=pr/1988 |
/run-mysql-test tidb-test=pr/1988 |
/run-check_dev_2 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 7e8028c
|
/merge |
/run-mysql-test tidb-test=pr/1988 |
TiDB MergeCI notify🔴 Bad News! New failing [1] after this pr merged.
|
What problem does this PR solve?
Issue Number: close #38187
Problem Summary:
Please see the issue and the doc PR.
What is changed and how it works?
probeParents
to allPhysicalPlan
implementations (please see the comments for the explanation).setProbeParents
,getEstRowCountForDisplay
andgetActualProbeCnt
to thePhysicalPlan
interface. ThegetEstRowCountForDisplay
andgetActualProbeCnt
will enable us to convert the row count between the "single probe" row count and the "all probes" row count as we need.propagateProbeParents
inpostOptimize
to traverse the plan tree and set theprobeParents
.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.