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

drop stats remain the "topn" info in mysql.stats_top_n #18161

Closed
lzmhhh123 opened this issue Jun 22, 2020 · 0 comments · Fixed by #18160
Closed

drop stats remain the "topn" info in mysql.stats_top_n #18161

lzmhhh123 opened this issue Jun 22, 2020 · 0 comments · Fixed by #18160
Assignees
Labels

Comments

@lzmhhh123
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t (c1 varchar(20), c2 varchar(20));
insert into t values("1","1"),("2","2"),("3","3"),("4","4");
insert into t select * from t;
insert into t select * from t;
analyze table t;
drop stats t;
select table_id, hist_id from mysql.stats_top_n;

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

The mysql.stats_top_n should be empty.

3. What did you see instead (Required)

There are some topn info in the table stats_top_n for table t.

4. Affected version (Required)

v3.0.0, v4.0.0, v3.1.0

5. Root Cause Analysis

drop stats didn't delete it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants