Skip to content

Commit

Permalink
Merge #99993
Browse files Browse the repository at this point in the history
99993: logictest: skip flaky distsql_automatic_stats for now r=knz a=yuzefovich

**execbuilder: remove redundant auto stats table overrides**

This commit removes table settings overrides of the auto stats
collection in several places. This is unnecessary given that we
explicitly disable the auto stats collection for the whole cluster in
the logic tests.

Release note: None

**logictest: skip flaky distsql_automatic_stats for now**

We've seen this file become more flaky recently, so let's skip it for
now.

Informs: #99751.

Release note: None

Co-authored-by: Yahor Yuzefovich <[email protected]>
  • Loading branch information
craig[bot] and yuzefovich committed Mar 29, 2023
2 parents d1f5bf3 + 365b393 commit 645d0d3
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 60 deletions.
7 changes: 0 additions & 7 deletions pkg/ccl/logictestccl/tests/3node-tenant/generated_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# LogicTest: !metamorphic-batch-sizes
# LogicTest: local !local !metamorphic-batch-sizes

# TODO(yuzefovich): at the moment the tests below that assert a particular set
# of statistics are flaky, so we disable this file by using a contradictory
# config set. Once #99751 is addressed, "local !local" part should be removed.

# Disable automatic stats
statement ok
Expand Down
7 changes: 0 additions & 7 deletions pkg/sql/logictest/tests/fakedist-disk/generated_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions pkg/sql/logictest/tests/fakedist-vec-off/generated_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions pkg/sql/logictest/tests/fakedist/generated_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions pkg/sql/logictest/tests/local-vec-off/generated_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions pkg/sql/logictest/tests/local/generated_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions pkg/sql/opt/exec/execbuilder/testdata/forecast
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ statement ok
SET CLUSTER SETTING sql.stats.forecasts.enabled = true

statement ok
CREATE TABLE g (a INT PRIMARY KEY) WITH (sql_stats_automatic_collection_enabled = false)
CREATE TABLE g (a INT PRIMARY KEY)

statement ok
ALTER TABLE g INJECT STATISTICS '[
Expand Down Expand Up @@ -211,7 +211,7 @@ scan g
# shrinks at a constant rate.

statement ok
CREATE TABLE s (b INT PRIMARY KEY) WITH (sql_stats_automatic_collection_enabled = false)
CREATE TABLE s (b INT PRIMARY KEY)

statement ok
ALTER TABLE s INJECT STATISTICS '[
Expand Down Expand Up @@ -430,7 +430,7 @@ scan s
# changes at a constant rate.

statement ok
CREATE TABLE c (h TIMESTAMPTZ PRIMARY KEY) WITH (sql_stats_automatic_collection_enabled = false)
CREATE TABLE c (h TIMESTAMPTZ PRIMARY KEY)

statement ok
ALTER TABLE c INJECT STATISTICS '[
Expand Down Expand Up @@ -608,7 +608,7 @@ scan c
# Test for issue 86344.

statement ok
CREATE TABLE x (a INT PRIMARY KEY) WITH (sql_stats_automatic_collection_enabled = false);
CREATE TABLE x (a INT PRIMARY KEY)

statement ok
ALTER TABLE x INJECT STATISTICS '[
Expand Down Expand Up @@ -745,8 +745,7 @@ WHERE stat->>'name' = '__forecast__';
# Test that we can disable forecasts for individual tables.

statement ok
CREATE TABLE d (d DATE PRIMARY KEY)
WITH (sql_stats_automatic_collection_enabled = false, sql_stats_forecasts_enabled = false)
CREATE TABLE d (d DATE PRIMARY KEY) WITH (sql_stats_forecasts_enabled = false)

statement ok
ALTER TABLE d INJECT STATISTICS '[
Expand Down Expand Up @@ -1281,7 +1280,7 @@ CREATE TABLE t (
b INT,
INDEX (a) STORING (b),
INDEX (b) STORING (a)
) WITH (sql_stats_automatic_collection_enabled = false)
)

statement ok
ALTER TABLE t INJECT STATISTICS '[
Expand Down
6 changes: 3 additions & 3 deletions pkg/sql/opt/exec/execbuilder/testdata/partial_stats
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ statement ok
SET CLUSTER SETTING sql.stats.forecasts.enabled = true

statement ok
CREATE TABLE g (b INT PRIMARY KEY) WITH (sql_stats_automatic_collection_enabled = false)
CREATE TABLE g (b INT PRIMARY KEY)

statement ok
ALTER TABLE g INJECT STATISTICS '[
Expand Down Expand Up @@ -447,7 +447,7 @@ WHERE stat->>'name' = '__forecast__';
# updated to that of the partial statistic.

statement ok
CREATE TABLE h (h INT PRIMARY KEY) WITH (sql_stats_automatic_collection_enabled = false);;
CREATE TABLE h (h INT PRIMARY KEY)

statement ok
ALTER TABLE h INJECT STATISTICS '
Expand Down Expand Up @@ -573,7 +573,7 @@ WHERE stat->>'name' = '__merged__';
# values to the start and end of our column.

statement ok
CREATE TABLE i (i INT PRIMARY KEY) WITH (sql_stats_automatic_collection_enabled = false);
CREATE TABLE i (i INT PRIMARY KEY)

statement ok
ALTER TABLE i INJECT STATISTICS '[
Expand Down

0 comments on commit 645d0d3

Please sign in to comment.