-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
executor: fix pointGet and batchPointGet for global index #47514
executor: fix pointGet and batchPointGet for global index #47514
Conversation
Hi @L-maple. Thanks for your PR. I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Hi @L-maple. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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. |
/cc @Defined2014 @mjonss |
60338f3
to
b3f5dde
Compare
b3f5dde
to
5bbeac1
Compare
5bbeac1
to
c35276a
Compare
/ok-to-test |
@L-maple Hi, we just merged a PR to change the code layout in the repository, 47123, could you please merge latest master and resolve possible conflicts? |
/test all |
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.
Have you considered to separate the two issues into separate PRs, they seems unrelated?
c35276a
to
4f04e62
Compare
OK, I will do it tomorrow. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #47514 +/- ##
================================================
+ Coverage 70.9388% 71.0885% +0.1496%
================================================
Files 1368 1430 +62
Lines 396702 423119 +26417
================================================
+ Hits 281416 300789 +19373
- Misses 95593 103363 +7770
+ Partials 19693 18967 -726
Flags with carried forward coverage won't be shown. Click here to find out more.
|
4f04e62
to
01d6362
Compare
01d6362
to
d36d7d4
Compare
/retest |
/cc @mjonss @Defined2014 |
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, just some minor suggestions.
9b17cca
to
21e0e50
Compare
@Defined2014 Hi, This PR has been reviewed for a long time, maybe I should push the process. |
/retest |
@Defined2014 @tiancaiamao Hi, this PR is opened for a long time, is there any problems? |
pkg/planner/core/point_get_plan.go
Outdated
@@ -1157,6 +1160,66 @@ func tryPointGetPlan(ctx sessionctx.Context, selStmt *ast.SelectStmt, check bool | |||
return nil | |||
} | |||
|
|||
func checkGlobalIndexForPointGetPlan(ctx sessionctx.Context, tblName *ast.TableName, tblAlias model.CIStr, fields []*ast.SelectField, pairs []nameValuePair, check bool) *PointGetPlan { |
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 not just use code in tryPointGetPlan
? Many lines are same as tryPointGetPlan
function.
Maybe we only need L1167-L1181.
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.
How about this one? @L-maple
21e0e50
to
83a0aba
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.
Need update tests/integrationtest/r/executor/partition/global_index.result
by
cd tests/integrationtest/
./run-tests.sh -r executor/partition/global_index
83a0aba
to
7f771b4
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Defined2014, mjonss The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
What problem does this PR solve?
Issue Number: close #47513
Problem Summary:
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.