TiDB can not update stats correctly after exchange a partition #47354
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 pt(a int, b varchar(10), index idx_b (b)) partition by range(a) (partition p0 values less than (10), partition p1 values less than (20), partition p2 values less than (30));
insert into pt(a, b) values(1,'a'); insert into pt(a, b) values(5,'a');
create table t1(a int, b varchar(10), index idx_b (b));
insert into t1(a, b) values(1,'a');
alter table pt exchange partition p0 with table t1;
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: