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

The sub_part in information_schema.statistics table incorrect #55812

Closed
Defined2014 opened this issue Sep 3, 2024 · 0 comments · Fixed by #55814
Closed

The sub_part in information_schema.statistics table incorrect #55812

Defined2014 opened this issue Sep 3, 2024 · 0 comments · Fixed by #55814
Assignees
Labels
affects-5.4 This bug affects the 5.4.x(LTS) versions. affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. component/infoschema report/customer Customers have encountered this bug. severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@Defined2014
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t (c text);
alter table t add index idx_t (c(16));
select SUB_PART from information_schema.statistics where TABLE_SCHEMA = 'test' and TABLE_NAME = 't';

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

mysql> select SUB_PART from information_schema.statistics where TABLE_SCHEMA = 'test' and TABLE_NAME = 't';
+----------+
| SUB_PART |
+----------+
|       16 |
+----------+
1 row in set (0.00 sec)

3. What did you see instead (Required)

mysql> select SUB_PART from information_schema.statistics where TABLE_SCHEMA = 'test' and TABLE_NAME = 't';
+----------+
| SUB_PART |
+----------+
|     NULL |
+----------+
1 row in set (0.00 sec)

4. What is your TiDB version? (Required)

@Defined2014 Defined2014 added type/bug The issue is confirmed as a bug. component/infoschema severity/moderate sig/sql-infra SIG: SQL Infra labels Sep 3, 2024
@Defined2014 Defined2014 self-assigned this Sep 3, 2024
@Defined2014 Defined2014 added the report/customer Customers have encountered this bug. label Sep 5, 2024
@seiya-annie seiya-annie added affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. labels Sep 5, 2024
@ti-chi-bot ti-chi-bot bot added the affects-5.4 This bug affects the 5.4.x(LTS) versions. label Sep 11, 2024
ti-chi-bot bot pushed a commit that referenced this issue Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-5.4 This bug affects the 5.4.x(LTS) versions. affects-6.1 This bug affects the 6.1.x(LTS) versions. affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. component/infoschema report/customer Customers have encountered this bug. severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants