-
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, expression: Disallow add stored generated columns through ALTER TABLE
#10758
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10758 +/- ##
================================================
- Coverage 80.3695% 80.2655% -0.1041%
================================================
Files 416 416
Lines 88913 88419 -494
================================================
- Hits 71459 70970 -489
- Misses 12224 12241 +17
+ Partials 5230 5208 -22 |
8052216
to
b612cc5
Compare
e332bf6
to
c24bcb8
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.
Rest LGTM
95b2025
to
92f0a5a
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
92f0a5a
to
b469597
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
/run-all-tests |
/run-all-tests |
What problem does this PR solve?
A temporary solution for issue 9372.
According to current TiDB document, adding stored generated columns are not supported:
So, an error should be returned for such statements.
What is changed and how it works?
Check the properties of the new column, if it is both
Generated
andStored
, return anerrUnsupportedOnGeneratedColumn
error.Check List
Tests