Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try to fix flaky test
Browse files Browse the repository at this point in the history
winoros committed Oct 18, 2024
1 parent bb82b4f commit 9f5929a
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -673,6 +673,7 @@ insert into t value(1,1,1, '{"b":[1,2,3,4]}');
insert into t value(2,2,2, '{"b":[3,4,5,6]}');
set tidb_analyze_version=2;
analyze table t all columns;
set @@tidb_stats_load_sync_wait=1000;
explain select * from t use index (iad) where a = 1;
id estRows task access object operator info
TableReader_7 1.00 root data:Selection_6
2 changes: 2 additions & 0 deletions tests/integrationtest/t/planner/core/indexmerge_path.test
Original file line number Diff line number Diff line change
@@ -230,6 +230,8 @@ insert into t value(1,1,1, '{"b":[1,2,3,4]}');
insert into t value(2,2,2, '{"b":[3,4,5,6]}');
set tidb_analyze_version=2;
analyze table t all columns;
# The below explain is flaky, try to increase the timeout of sync load first.
set @@tidb_stats_load_sync_wait=1000;
explain select * from t use index (iad) where a = 1;
explain select * from t use index (iad) where a = 1 and (2 member of (d->'$.b'));

0 comments on commit 9f5929a

Please sign in to comment.