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

create non partition table with primary key + global index shouldn't success. #56804

Closed
Defined2014 opened this issue Oct 23, 2024 · 0 comments · Fixed by #56808
Closed

create non partition table with primary key + global index shouldn't success. #56804

Defined2014 opened this issue Oct 23, 2024 · 0 comments · Fixed by #56808
Assignees
Labels
component/tablepartition This issue is related to Table Partition of TiDB. severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@Defined2014
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t1(a int, b int, primary key (a) global);
create table t(a int, b int, primary key (a) global) partition by hash(a) partitions 5;

Also

create table t1(a int, b int);
alter table t1 add primary key (a) global;

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

all report error

3. What did you see instead (Required)

create table success

4. What is your TiDB version? (Required)

v8.4.0-alpha-290-gf2ed8228ff
@Defined2014 Defined2014 added the type/bug The issue is confirmed as a bug. label Oct 23, 2024
@Defined2014 Defined2014 self-assigned this Oct 23, 2024
@Defined2014 Defined2014 added sig/sql-infra SIG: SQL Infra severity/moderate component/tablepartition This issue is related to Table Partition of TiDB. labels Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/tablepartition This issue is related to Table Partition of TiDB. 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.

1 participant