Statistics after Modify Column is not updated. #44311
Labels
component/statistics
severity/moderate
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
When modifying a column it does not update the statistics (here enum->varchar example)
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
The histogram and TopN statistics reflecting the new column type.
3. What did you see instead (Required)
No updated statistics. And after manual
analyze table t
the old statistics is still there!Also if there would be an index on 'b' it seems like the statistics would been updated after the
alter table
.4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: