Skip to content

add index row count doesn't match the actual row count #25968

Closed
@crazycs520

Description

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t (id bigint key,b int);
split table t by (10),(20),(30);
 insert into t values (0,0),(10,10),(20,20),(30,30);
alter table t add index idx1(b);
admin show ddl jobs;
select count(*) from t;

image

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

add index row count match the actual row count.

3. What did you see instead (Required)

doesn't match.

4. What is your TiDB version? (Required)

test> select tidb_version()\G
***************************[ 1. row ]***************************
tidb_version() | Release Version: v5.0.2
Edition: Community
Git Commit Hash: dc40a093a0058b95fc859f60d4b84337dbdff9f6
Git Branch: HEAD
UTC Build Time: 2021-07-05 08:12:38
GoVersion: go1.16
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.sig/sql-infraSIG: SQL Infratype/enhancementThe issue or PR belongs to an enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions