You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
createtablet(a int, b int, c int, primary key(a), key idx(b));
insert into t values (1,1,1),(2,2,2),(3,3,3);
createtablet2(a int, primary key(a));
insert into t2 values (1),(2),(3);
createtabletp(a int, b int, c int, index ic(c)) partition by range(a) (partition p0 values less than (10),partition p1 values less than (20),partition p2 values less than maxvalue);
insert into tp values (1,1,1),(2,2,2),(13,13,13),(14,14,14),(25,25,25),(36,36,36);
analyze table t;
analyze table t2;
analyze table tp;
explain select*from tp;
explain select*from t1;
explain select*from t2;
set @@tidb_stats_load_sync_wait =0;
explain format = brief select*from t join tp partition (p0) join t2 wheret.a<10andt.b=tp.candt2.a>10andt2.a=tp.c;
2. What did you expect to see? (Required)
Correctly display the stats loading related information.
3. What did you see instead (Required)
Note the ID 8:allEvicted and ID 6:allEvicted in the plan. The column's ID with incomplete stats is wrong, so it fails to get the column name from the metadata and prints the column ID directly.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
Correctly display the stats loading related information.
3. What did you see instead (Required)
Note the
ID 8:allEvicted
andID 6:allEvicted
in the plan. The column's ID with incomplete stats is wrong, so it fails to get the column name from the metadata and prints the column ID directly.4. What is your TiDB version? (Required)
Affects from 7.1 to the current master (pre-v8.1)
The text was updated successfully, but these errors were encountered: