forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,28 @@ | ||
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'); | ||
select * from test where x in ('a') SETTINGS allow_experimental_analyzer = 1; | ||
select '-------------------'; | ||
select x in Null from test; | ||
select '-------------------'; | ||
explain query tree select * from test where x in ('a'); | ||
explain query tree select * from test where x in ('a') SETTINGS allow_experimental_analyzer = 1; | ||
select '-------------------'; | ||
explain query tree select * from test where x in (upper('a')); | ||
explain query tree select * from test where x in (upper('a')) SETTINGS allow_experimental_analyzer = 1; | ||
select '-------------------'; | ||
explain query tree select * from test where x in ('a','b'); | ||
explain query tree select * from test where x in ('a','b') SETTINGS allow_experimental_analyzer = 1; | ||
select '-------------------'; | ||
explain query tree select * from test where x in ['a','b']; | ||
explain query tree select * from test where x in ['a','b'] SETTINGS allow_experimental_analyzer = 1; | ||
select '-------------------'; | ||
select * from test where x not in ('a'); | ||
select * from test where x not in ('a') SETTINGS allow_experimental_analyzer = 1; | ||
select '-------------------'; | ||
explain query tree select * from test where x not in ('a'); | ||
explain query tree select * from test where x not in ('a') SETTINGS allow_experimental_analyzer = 1; | ||
select '-------------------'; | ||
explain query tree select * from test where x not in (upper('a')); | ||
explain query tree select * from test where x not in (upper('a')) SETTINGS allow_experimental_analyzer = 1; | ||
select '-------------------'; | ||
explain query tree select * from test where x not in ('a','b'); | ||
explain query tree select * from test where x not in ('a','b') SETTINGS allow_experimental_analyzer = 1; | ||
select '-------------------'; | ||
explain query tree select * from test where x not in ['a','b']; | ||
explain query tree select * from test where x not in ['a','b'] SETTINGS allow_experimental_analyzer = 1; | ||
select '-------------------'; | ||
explain query tree select * from test where x not in (NULL); | ||
explain query tree select * from test where x not in (NULL) SETTINGS allow_experimental_analyzer = 1; | ||
select '-------------------'; | ||
explain query tree select * from test where x in (NULL); | ||
explain query tree select * from test where x in (NULL) SETTINGS allow_experimental_analyzer = 1; |