diff --git a/tests/queries/0_stateless/03013_optimize_in_to_equal.sql b/tests/queries/0_stateless/03013_optimize_in_to_equal.sql index c38a741114f..ba6eb5d4f5f 100644 --- a/tests/queries/0_stateless/03013_optimize_in_to_equal.sql +++ b/tests/queries/0_stateless/03013_optimize_in_to_equal.sql @@ -1,28 +1,29 @@ DROP TABLE IF EXISTS test; CREATE TABLE test (x String, y Int32) ENGINE = MergeTree() ORDER BY x; +SET allow_experimental_analyzer = 1; INSERT INTO test VALUES ('a', 1), ('b', 2), ('c', 3); -select * from test where x in ('a') SETTINGS allow_experimental_analyzer = 1; +select * from test where x in ('a'); select '-------------------'; select x in Null from test; select '-------------------'; -explain query tree select * from test where x in ('a') SETTINGS allow_experimental_analyzer = 1; +explain query tree select * from test where x in ('a'); select '-------------------'; -explain query tree select * from test where x in (upper('a')) SETTINGS allow_experimental_analyzer = 1; +explain query tree select * from test where x in (upper('a')); select '-------------------'; -explain query tree select * from test where x in ('a','b') SETTINGS allow_experimental_analyzer = 1; +explain query tree select * from test where x in ('a','b'); select '-------------------'; -explain query tree select * from test where x in ['a','b'] SETTINGS allow_experimental_analyzer = 1; +explain query tree select * from test where x in ['a','b']; select '-------------------'; -select * from test where x not in ('a') SETTINGS allow_experimental_analyzer = 1; +select * from test where x not in ('a'); select '-------------------'; -explain query tree select * from test where x not in ('a') SETTINGS allow_experimental_analyzer = 1; +explain query tree select * from test where x not in ('a'); select '-------------------'; -explain query tree select * from test where x not in (upper('a')) SETTINGS allow_experimental_analyzer = 1; +explain query tree select * from test where x not in (upper('a')); select '-------------------'; -explain query tree select * from test where x not in ('a','b') SETTINGS allow_experimental_analyzer = 1; +explain query tree select * from test where x not in ('a','b'); select '-------------------'; -explain query tree select * from test where x not in ['a','b'] SETTINGS allow_experimental_analyzer = 1; +explain query tree select * from test where x not in ['a','b']; select '-------------------'; -explain query tree select * from test where x not in (NULL) SETTINGS allow_experimental_analyzer = 1; +explain query tree select * from test where x not in (NULL); select '-------------------'; -explain query tree select * from test where x in (NULL) SETTINGS allow_experimental_analyzer = 1; +explain query tree select * from test where x in (NULL);