-
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
Modifying the column type(needn't to change the data) involved in the generated column is not completely prohibited #24321
Comments
Related to #24310. |
I think it's ok to allow it. The document should be refined |
The reason for the ban here is that there is no energy to carry out the complete test at present. Before the complete test is completed, it can be prohibited by the same treatment as the modification of data(#24310). |
If generate column is GA, then you can't forbid it. If not, then we don't need to forbid it. |
But we said we don't support this behavior in https://docs.pingcap.com/tidb/stable/generated-columns#limitations. So I think we need to forbid it. |
Which statement? |
/cc @zimulala |
@wjhuang2016 @zimulala I'm unsure how this issue tracked by at least this line https://github.com/pingcap/tidb/pull/25263/files#diff-0485729b654feaebae798e651571d5fd1091fbedb374ac61518e1536de7f37c4R161 shows that the issue is resolved? |
Bug Report
Please answer these questions before submitting your issue. Thanks!
There is currently no support for changing the type of a column involving generating a column. Related to compatibility-issues-with-mysql.
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
Return an error like
Unsupported modify column: tidb_enable_change_column_type is true, oldCol is a dependent column 'a' for generated column
.3. What did you see instead (Required)
Query OK, 0 rows affected (2.52 sec)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: