remove duplicated SETTINGS statement

This commit is contained in:
Yarik Briukhovetskyi 2024-03-22 12:27:37 +01:00 committed by GitHub
parent 6a550bc754
commit ad218411b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);