-
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
ddl: fix create table with like bug when refer table has non-public column/index #9580
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9580 +/- ##
===============================================
+ Coverage 67.4097% 67.415% +0.0053%
===============================================
Files 376 376
Lines 79180 79190 +10
===============================================
+ Hits 53375 53386 +11
+ Misses 21034 21032 -2
- Partials 4771 4772 +1 |
/run-all-tests |
1 similar comment
/run-all-tests |
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.
reset LGTM
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 |
…/tidb into fix-create-table-like
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
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 |
Please cherry-pick to 2.1, 2.0 |
What problem does this PR solve?
Create table with like will copy refer table directly, It will have problem when refer table have a non-public column or index( may cause by add/drop column/index ). That will cause the new create table will have a column/index always in non-public, this may cause some problem. See jira issue#3190.
What is changed and how it works?
Check non-public column and index when create table with like.
Check List
Tests
Code changes
Side effects
Related changes