pingcap/tidb

Show ANALYZE TABLE result

Open

#29,712 opened on Nov 12, 2021

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Go (40,090 stars) (6,186 forks)batch import
help wantedtype/feature-request

Description

Feature Request

When I run the query ANALYZE TABLE t1; in TiDB, it shows nothing.

TiDB> ANALYZE TABLE t1;
Query OK, 0 rows affected (0.05 sec)

My expectation is to give a similar result as in MySQL.

mysql> ANALYZE TABLE t1;
+----------------------+---------+----------+----------+
| Table                | Op      | Msg_type | Msg_text |
+----------------------+---------+----------+----------+
| invisible_indexes.t1 | analyze | status   | OK       |
+----------------------+---------+----------+----------+
1 row in set (0.05 sec)

Contributor guide

Show ANALYZE TABLE result · pingcap/tidb#29712 | Good First Issue