Truncating the hash partition in TiDB does not automatically delete old statistics and update the global stats #48235
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!
1. Minimal reproduce step (Required)
create table ht(a int, b varchar(10), index idx_b (b)) partition by hash(a) partitions 3;
insert into ht values (1, "a"), (2, "b"), (3, "c");
alter table ht truncate partition p0;
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: