Skip to content
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

alter table error : Invalid %!!(string=column)s(MISSING) state: %!!(model.SchemaState=5)v(MISSING) #45744

Closed
bob34007 opened this issue Aug 2, 2023 · 1 comment · Fixed by #45764

Comments

@bob34007
Copy link
Contributor

bob34007 commented Aug 2, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table variables_info like information_schema.variables_info;
alter table variables_info modify min_value varchar(200);

2. What did you expect to see? (Required)

alter table success

3. What did you see instead (Required)

ERROR 8210 (HY000): DDL job rollback, error msg: Invalid %!!(string=column)s(MISSING) state: %!!(model.SchemaState=5)v(MISSING)

4. What is your TiDB version? (Required)

Release Version: v6.5.2
Edition: Community
Git Commit Hash: 29116c0
Git Branch: heads/refs/tags/v6.5.2
UTC Build Time: 2023-04-19 10:52:30
GoVersion: go1.19.8
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: tikv

@zimulala
Copy link
Contributor

zimulala commented Aug 2, 2023

At present, it is the MaxColumnID of the table in the information_schema database, which affects modify column, add column(this action has no problem in behavior, but can cause problems with column ids that are not unique)
.
The table under metrics_schema has a similar problem, and the table under performance_schema does not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants