mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
remove duplicated SETTINGS statement
This commit is contained in:
parent
6a550bc754
commit
ad218411b3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user