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. DetailsReviewer 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 |
| plan = enableParallelApply(sctx, plan) | ||
| handleFineGrainedShuffle(sctx, plan) | ||
| checkPlanCacheable(sctx, plan) | ||
| propagateProbeParents(plan, nil) |
There was a problem hiding this comment.
Should we invoke this function only when sctx.GetSessionVars().StmtCtx.InExplainStmt == true?
There was a problem hiding this comment.
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. DetailsCommit 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?
probeParentsto allPhysicalPlanimplementations (please see the comments for the explanation).setProbeParents,getEstRowCountForDisplayandgetActualProbeCntto thePhysicalPlaninterface. ThegetEstRowCountForDisplayandgetActualProbeCntwill enable us to convert the row count between the "single probe" row count and the "all probes" row count as we need.propagateProbeParentsinpostOptimizeto 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.