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

ddl:creating a secondary index may isn't compatible with mysql when the table contains cluster index #29658

Closed
TonsnakeLin opened this issue Nov 10, 2021 · 1 comment · Fixed by #29660
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@TonsnakeLin
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t9(
id1 varchar(3000),
id2 varchar(3000),
primary key (id1) CLUSTERED,
key id2_key(id2)
) charset = latin1;

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

success

3. What did you see instead (Required)

ERROR 1071 (42000): Specified key was too long; max key length is 3072 bytes

4. What is your TiDB version? (Required)

Release Version: v5.0.0
Edition: Community
Git Commit Hash: bdac088
Git Branch: heads/refs/tags/v5.0.0
UTC Build Time: 2021-04-06 16:36:29
GoVersion: go1.13
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false

@TonsnakeLin TonsnakeLin added the type/bug The issue is confirmed as a bug. label Nov 10, 2021
@TonsnakeLin TonsnakeLin changed the title creating a secondary index may isn't compatible with mysql when the table contains cluster index ddl:creating a secondary index may isn't compatible with mysql when the table contains cluster index Nov 10, 2021
@github-actions
Copy link

github-actions bot commented Dec 1, 2021

Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants