-
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
ddl: Support exchange partition #17149
Conversation
merge from master
merge tidb from master
Thanks for your contribution. If your PR get merged, you will be rewarded 2530 points. |
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
Hi @zhaox1n , thanks for your contribution! Please fix the CI firstly(for example, https://internal.pingcap.net/idc-jenkins/job/tidb_ghpr_build/36145/display/redirect):
|
Co-authored-by: Lynn <[email protected]>
// Index type is not compatible | ||
if sourceIdx.Tp != compatIdx.Tp || | ||
sourceIdx.Unique != compatIdx.Unique || | ||
sourceIdx.Primary != compatIdx.Primary { |
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.
@crazycs520 It has compared the Primary key here.
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.
No, they are different. For table create table t1 (a int key, b int, index (a));
, the TableInfo.Indices
is 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.
Done @crazycs520 PTAL
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.
REST LGTM
Please resolve conflict @zhaox1n |
@crazycs520 |
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
/run-all-tests |
@zhaox1n merge failed. |
/run-unit-test |
UCP #15005
What is changed and how it works?
Support exchange partition
Check List
Tests
Release note