-
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: do not choose point get when exists read from tiflash hint. #17046
planner: do not choose point get when exists read from tiflash hint. #17046
Conversation
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
/rebuild |
Codecov Report
@@ Coverage Diff @@
## master #17046 +/- ##
===========================================
Coverage 80.0410% 80.0410%
===========================================
Files 520 520
Lines 141255 141255
===========================================
Hits 113062 113062
Misses 19240 19240
Partials 8953 8953 |
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
but, once the table actually doesn't have a tiflash replica. We'll fail to choose point get as well?
Yes, we have supported the CBO point get now. |
Co-authored-by: Feng Liyuan <darktemplar.f@gmail.com>
/rebuild |
ds.possibleAccessPaths[0] = path | ||
ds.possibleAccessPaths = ds.possibleAccessPaths[:1] | ||
if tiflashPath != nil { | ||
ds.possibleAccessPaths = append(ds.possibleAccessPaths, tiflashPath) |
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.
Why should we keep the tiflash path here? would the behavior be inconsistent with other hints like USE_INDEX
? since those indexes are removed as well ignoring potential hints.
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.
I'm afraid it will affect other index hints. Since the path has been filtered.
@lzmhhh123: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What problem does this PR solve?
Issue Number: close #16909
Problem Summary: do not choose point get when exists read from tiflash hint.
What is changed and how it works?
What's Changed: do not choose point get when exists read from tiflash hint.
Related changes
Check List
Tests
Side effects
Release note