Decreasing the hash partition count in TiDB does not automatically delete old statistics and update the global stats #48233
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 partition by hash(a) partitions 2;
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: