planner: not push tiflash if extra phys tbl id is needed#32830
Conversation
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
Signed-off-by: xufei <xufeixw@mail.ustc.edu.cn>
|
[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. |
|
Please follow PR Title Format:
Or if the count of mainly changed packages are more than 3, use
After you have format title, you can leave a comment |
|
/run-unit-test |
mjonss
left a comment
There was a problem hiding this comment.
LGTM
Just a question about SelectLock/SELECT FOR UPDATE, maybe we should at least add a comment where the plan is made why it would not use TiFlash? (OK to ignore)
| c.Assert(strings.Contains(res, "tiflash"), IsTrue) | ||
| c.Assert(strings.Contains(res, "tikv"), IsFalse) | ||
|
|
||
| rows = tk.MustQuery("explain select count(*) from t for update").Rows() |
There was a problem hiding this comment.
Do you know where in the planner this is decided to never go to tiflash?
|
/merge |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: d294a8c |
|
/run-unit-test |
|
/run-all-tests |
|
/run-unit-test |
|
/run-mysql-test |
|
/run-unit-test |
|
/run-unit-test |
|
Please fix the unit test. |
|
/run-mysql-test |
|
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/45413a095c9b5db23fe010324afcf45d4d50d068 |
…gcap#32830)" This reverts commit b0f823c.
What problem does this PR solve?
Issue Number: close #32829
Problem Summary:
What is changed and how it works?
The root cause is TiFlash does not support virtual column
ExtraPhysTblIDyet.This pr explicitly remove TiFlash's access path if
ExtraPhysTblIDis needed.Check List
Tests
Side effects
Documentation
Release note