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

executor: for global index update partition keys but returns "Duplicate Key" error #42312

Closed
L-maple opened this issue Mar 16, 2023 · 0 comments · Fixed by #42311
Closed

executor: for global index update partition keys but returns "Duplicate Key" error #42312

L-maple opened this issue Mar 16, 2023 · 0 comments · Fixed by #42311
Labels
affects-7.0 component/tablepartition This issue is related to Table Partition of TiDB. feature/developing the related feature is in development severity/major sig/sql-infra SIG: SQL Infra type/bug This issue is a bug.

Comments

@L-maple
Copy link
Contributor

L-maple commented Mar 16, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

drop table if exists test_global;
create table test_global ( a int, b int, c int)
partition by range( a ) (
	partition p1 values less than (10),
	partition p2 values less than (20),
	partition p3 values less than (30)
);
alter table test_global add unique index idx_b (b);
insert into test_global values (1, 1, 1), (8, 8, 8), (11, 11, 11), (12, 12, 12);
update test_global set a = 2 where a = 11;

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

update successfully.

3. What did you see instead (Required)

Duplicate Key error.
image

4. What is your TiDB version? (Required)

image

@L-maple L-maple added the type/bug This issue is a bug. label Mar 16, 2023
@L-maple L-maple changed the title executor: update partition keys but returns "Duplicate Key" for global index executor: for global index update partition keys but returns "Duplicate Key" error Mar 16, 2023
@jebter jebter added sig/sql-infra SIG: SQL Infra component/tablepartition This issue is related to Table Partition of TiDB. labels Mar 16, 2023
@Defined2014 Defined2014 added feature/developing the related feature is in development severity/major labels Mar 16, 2023
@ti-chi-bot ti-chi-bot added may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 labels Mar 16, 2023
@Defined2014 Defined2014 removed may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-6.1 may-affects-6.5 labels Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.0 component/tablepartition This issue is related to Table Partition of TiDB. feature/developing the related feature is in development severity/major sig/sql-infra SIG: SQL Infra type/bug This issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants