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

Data inconsistency after adding index in another timezone #46053

Closed
tangenta opened this issue Aug 14, 2023 · 1 comment
Closed

Data inconsistency after adding index in another timezone #46053

tangenta opened this issue Aug 14, 2023 · 1 comment
Labels
affects-6.5 affects-6.6 affects-7.0 affects-7.1 affects-7.2 affects-7.3 component/ddl This issue is related to DDL of TiDB. duplicate Issues or pull requests already exists. severity/major type/bug The issue is confirmed as a bug.

Comments

@tangenta
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

SET time_zone = '-06:00';
create table t (`src` varchar(48),`t` timestamp,`timezone` varchar(100));
insert into t values('2000-07-29 23:15:30 -0600','2000-07-29 23:15:30 -0600','-6:00');
alter table t add index idx(t);
admin check table t;

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

No error.

3. What did you see instead (Required)

ERROR 8223 (HY000): data inconsistency in table: t, index: idx, handle: 1, index-values:"handle: 1, values: [KindMysqlTime 2000-07-30 19:15:30]" != record-values:"handle: 1, values: [KindMysqlTime 2000-07-30 13:15:30]"

4. What is your TiDB version? (Required)

c34f6fc

@tangenta tangenta added type/bug The issue is confirmed as a bug. severity/major labels Aug 14, 2023
@ti-chi-bot ti-chi-bot bot added 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 may-affects-7.1 labels Aug 14, 2023
@jackysp
Copy link
Member

jackysp commented Aug 14, 2023

Duplicate with #46033

@jackysp jackysp closed this as completed Aug 14, 2023
@jebter jebter added duplicate Issues or pull requests already exists. component/ddl This issue is related to DDL of TiDB. labels Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.5 affects-6.6 affects-7.0 affects-7.1 affects-7.2 affects-7.3 component/ddl This issue is related to DDL of TiDB. duplicate Issues or pull requests already exists. severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

3 participants