We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Start TiDB cluster: tiup playground v8.0.0
Enable tidb_enable_column_tracking:
mysql> set global tidb_enable_column_tracking=1; Query OK, 0 rows affected (0.02 sec) mysql> select @@tidb_enable_column_tracking; +-------------------------------+ | @@tidb_enable_column_tracking | +-------------------------------+ | 1 | +-------------------------------+ ```sql 3. Create a table: create table t (a int, b int); 4. Select the table: select * from t where t.a > 1; 5. Wait for about 5m: ```sql mysql> select * from mysql.column_stats_usage; +----------+-----------+---------------------+------------------+ | table_id | column_id | last_used_at | last_analyzed_at | +----------+-----------+---------------------+------------------+ | 104 | 1 | 2024-04-18 15:59:07 | NULL | +----------+-----------+---------------------+------------------+ 1 row in set (0.00 sec)
mysql> select * from mysql.column_stats_usage; +----------+-----------+---------------------+------------------+ | table_id | column_id | last_used_at | last_analyzed_at | +----------+-----------+---------------------+------------------+ | 54 | 2 | 2024-04-18 16:02:00 | NULL | | 104 | 1 | 2024-04-18 15:59:07 | NULL | +----------+-----------+---------------------+------------------+ 2 rows in set (0.00 sec)
There are no system tables.
We collected system tables.
v8.0.0
The text was updated successfully, but these errors were encountered:
planner: skip all system tables when collecting prediction columns (#…
d6308af
…53443) close #53403
planner: skip all system tables when collecting prediction columns (p…
44632ae
…ingcap#53443) close pingcap#53403
Successfully merging a pull request may close this issue.
Bug Report
1. Minimal reproduce step (Required)
Start TiDB cluster: tiup playground v8.0.0
Enable tidb_enable_column_tracking:
select * from mysql.column_stats_usage where column_id > 0;
2. What did you expect to see? (Required)
There are no system tables.
3. What did you see instead (Required)
We collected system tables.
4. What is your TiDB version? (Required)
v8.0.0
The text was updated successfully, but these errors were encountered: