Skip to content

Commit e8b7b97

Browse files
committed
logictest: make test case deterministic
This commit makes a test case in `distsql_agg` deterministic no matter how many optimizer rules have been defined. It now explicitly disables an optimizer rule, which is required to reproduce the behavior, rather than using the `testing_optimizer_random_seed` and `testing_optimizer_disable_rule_probability` session settings. Release note: None
1 parent 9510b99 commit e8b7b97

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/sql/logictest/testdata/logic_test/distsql_agg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,8 +730,7 @@ statement ok
730730
CREATE TABLE t108901 AS SELECT g::FLOAT8 AS _float8 FROM generate_series(1, 5) AS g;
731731
ALTER TABLE t108901 SPLIT AT VALUES (1), (2), (3);
732732
ALTER TABLE t108901 RELOCATE VOTERS VALUES (ARRAY[1], 1), (ARRAY[2], 2), (ARRAY[3], 3);
733-
SET testing_optimizer_random_seed = 1613845022891698972;
734-
SET testing_optimizer_disable_rule_probability = 0.500000;
733+
SET disable_optimizer_rules = PruneWindowOutputCols;
735734

736735
statement error integer out of range
737736
SELECT 1 FROM t108901 WHERE

0 commit comments

Comments
 (0)