Skip to content

Commit 2b5ffa4

Browse files
committed
logictest: de-flake recently added geo test
In recently merged change we added a test that assumes the inverted join is picked for a query. However, if we happen to not use the freshly collected table stats, we default to using a cross join. Fix this by clearing the stats cache before running the query. Release note: None
1 parent f01b78c commit 2b5ffa4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/sql/logictest/testdata/logic_test/inverted_index

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2137,6 +2137,11 @@ INSERT INTO t151995 (c0, c1) VALUES (
21372137
statement ok
21382138
ANALYZE t151995;
21392139

2140+
# Clear the stat cache so that the new statistic is guaranteed to be used (which
2141+
# are needed for the inverted join to be picked).
2142+
statement ok
2143+
SELECT crdb_internal.clear_table_stats_cache();
2144+
21402145
statement error geos error: IllegalArgumentException: BufferOp::getResultGeometry distance must be a finite value
21412146
SELECT *
21422147
FROM t151995 AS t1

0 commit comments

Comments
 (0)