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

Can create global index with partition columns #55424

Closed
Defined2014 opened this issue Aug 15, 2024 · 1 comment · Fixed by #55440
Closed

Can create global index with partition columns #55424

Defined2014 opened this issue Aug 15, 2024 · 1 comment · Fixed by #55440
Assignees
Labels
affects-8.3 component/tablepartition This issue is related to Table Partition of TiDB. severity/major 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 t(a int, b int) partition by hash(b) partitions 5;
alter table t add unique idx(b) global;

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

report error

3. What did you see instead (Required)

alter global index success

4. What is your TiDB version? (Required)

mysql> select tidb_version();
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version()                                                                                                                                                                                                                                                           |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v8.2.0-alpha-869-g1b172b674f
Edition: Community
Git Commit Hash: 1b172b674fa37259fabc4fcbc205274d4091fcce
Git Branch: master
UTC Build Time: 2024-08-15 03:11:41
GoVersion: go1.23.0
Race Enabled: false
Check Table Before Drop: false
Store: unistore |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
@Defined2014
Copy link
Contributor Author

And also SQL below

create table t(a int, b int, unique index idx(a) global);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-8.3 component/tablepartition This issue is related to Table Partition of TiDB. severity/major 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