Skip to content

Commit a82c2cc

Browse files
authored
Merge pull request #149641 from cockroachdb/blathers/backport-release-25.2-149504
release-25.2: logictest: deflake partial_stats (#149641) Co-Authored-By: Yahor Yuzefovich <[email protected]>
2 parents 93721ac + ae1a4f4 commit a82c2cc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkg/sql/opt/exec/execbuilder/testdata/partial_stats

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,12 @@ INSERT INTO ka VALUES (10, 10)
13901390
statement ok
13911391
CREATE STATISTICS ka_partialstat ON a FROM ka USING EXTREMES
13921392

1393-
query T retry
1393+
# Now clear the stats cache so that the query below is guaranteed to pick up the
1394+
# new stats (partial and merged).
1395+
statement ok
1396+
SELECT crdb_internal.clear_table_stats_cache();
1397+
1398+
query T
13941399
EXPLAIN SELECT * FROM ka WHERE a > 5
13951400
----
13961401
distribution: local

0 commit comments

Comments
 (0)