-
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: enhance global index #41197
executor: enhance global index #41197
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. |
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. |
/label severity-moderate |
@L-maple: The label(s) In response to this:
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 ti-community-infra/tichi repository. |
/label severity/moderate |
@L-maple: The label(s) In response to this:
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 ti-community-infra/tichi repository. |
ed7b0ce
to
85938c4
Compare
/cc @tiancaiamao @mjonss |
/assign @tiancaiamao |
/auto-cc |
85938c4
to
05b6563
Compare
/cc @bb7133 |
/retest |
05b6563
to
3a5dd69
Compare
Maybe TestIngestMVIndexOnPartitionTable has no relation with my PR, which is always wrong. |
9772e56
to
6b383c9
Compare
/retest-required |
6b383c9
to
c808d37
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.
LGTM, just some minor questions. Great work!
ddl/sanity_check.go
Outdated
@@ -97,7 +97,7 @@ func expectedDeleteRangeCnt(ctx delRangeCntCtx, job *model.Job) (int, error) { | |||
if err := job.DecodeArgs(&startKey, &physicalTableIDs, &ruleIDs); err != nil { | |||
return 0, errors.Trace(err) | |||
} | |||
return mathutil.Max(len(physicalTableIDs), 1), nil | |||
return mathutil.Max(len(physicalTableIDs)+1, 1), 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.
Why Max(x+1, 1)
if x >= 0?
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.
For drop table ddl the [t{tableID}_, t{tableID+1}) range is deleted in finishDDLJob
, as logical table may contain global index.
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 don't think the max
function is needed anymore here. Since len(xx)
is always >= 0, the return value of the max
function is always equal to len(physicalTableIDs)+1
. @L-maple
return mathutil.Max(len(physicalTableIDs)+1, 1), nil | |
return len(physicalTableIDs)+1, 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.
@Defined2014 resolved, thanks.
@L-maple Please ping me when you want to merge this into pingcap/tidb/master. |
/retest |
/retest-required |
c808d37
to
7255cc1
Compare
Let's wait till friday, if there is no news from mjonss, I will merge this PR. cc @mjonss |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 7255cc1
|
@mjonss Hi, mjonss! I just found the global index proposal was proposed in 2020.
|
What problem does this PR solve?
Issue Number: close #40497
Issue Number: close #21732
Issue Number: close #40149
Note: PR #22478 doest not solve #40149 actually, so I list it here.
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.