-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Runtime error index out of range for Key partitioned table when partitioning column is not the first column. #50206
Comments
/type regression |
Regression Analysis mysql> create table t (b varchar(255), a int primary key nonclustered, key (b)) partition by key(a) partitions 3; mysql> insert into t values ('Ab', 1),('abc',2),('BC',3),('AC',4),('BA',5),('cda',6); mysql> analyze table t; mysql> select * from t where a = 2; mysql> Database changed mysql> create table t (b varchar(255), a int primary key nonclustered, key (b)) partition by key(a) partitions 3; mysql> insert into t values ('Ab', 1),('abc',2),('BC',3),('AC',4),('BA',5),('cda',6); mysql> analyze table t; mysql> select * from t where a = 2; +----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ |
Regression Analysis |
mysql --comments --host 127.0.0.1 --port 4000 -u root test < issue50206_testcase.sql mysql --comments --host 127.0.0.1 --port 4000 -u root test < issue50206_testcase.sql |
/found community |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
Success
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: