Skip to content

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

@Defined2014

Description

@Defined2014

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions