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 5.4.x versions. affects-6.1 affects-6.5 affects-7.1 affects-7.5 affects-8.1 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)

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 5.4.x versions. affects-6.1 affects-6.5 affects-7.1 affects-7.5 affects-8.1 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