-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
affects-5.2This bug affects 5.2.x versions.This bug affects 5.2.x versions.affects-5.3This bug affects 5.3.x versions.This bug affects 5.3.x versions.affects-5.4This bug affects the 5.4.x(LTS) versions.This bug affects the 5.4.x(LTS) versions.affects-6.0affects-6.1This bug affects the 6.1.x(LTS) versions.This bug affects the 6.1.x(LTS) versions.affects-6.2affects-6.3affects-6.4affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.affects-6.6severity/majorsig/sql-infraSIG: SQL InfraSIG: SQL Infratype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
create table t(a int, index idx((a+1)));
insert into t values (1);
insert into t values (2);
admin recover index t idx;
admin check table t;2. What did you expect to see? (Required)
3. What did you see instead (Required)
mysql> create table t(a int, index idx((a+1)));
Query OK, 0 rows affected (0.04 sec)
mysql> insert into t values (1);
Query OK, 1 row affected (0.00 sec)
mysql> insert into t values (2);
Query OK, 1 row affected (0.00 sec)
mysql> admin recover index t idx;
+-------------+------------+
| ADDED_COUNT | SCAN_COUNT |
+-------------+------------+
| 2 | 2 |
+-------------+------------+
1 row in set (0.01 sec)
mysql> admin check table t;
ERROR 8134 (HY000): data inconsistency in table: t, index: idx, col: _V$_idx_0, handle: "1", index-values:"KindNull <nil>" != record-values:"KindInt64 2", compare err:<nil>
4. What is your TiDB version? (Required)
mysql> select tidb_version();
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version()
|
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v6.5.0-2-gf700b565bc
Edition: Community
Git Commit Hash: f700b565bcf1115f27fab076f7183cf9d78a0f16
Git Branch: release-6.5
UTC Build Time: 2023-01-09 09:47:14
GoVersion: go1.19.1
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: unistore |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.02 sec)
I believe it happens since expression index is supported
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
affects-5.2This bug affects 5.2.x versions.This bug affects 5.2.x versions.affects-5.3This bug affects 5.3.x versions.This bug affects 5.3.x versions.affects-5.4This bug affects the 5.4.x(LTS) versions.This bug affects the 5.4.x(LTS) versions.affects-6.0affects-6.1This bug affects the 6.1.x(LTS) versions.This bug affects the 6.1.x(LTS) versions.affects-6.2affects-6.3affects-6.4affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.affects-6.6severity/majorsig/sql-infraSIG: SQL InfraSIG: SQL Infratype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.