Skip to content

Commit

Permalink
revert previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yariks5s authored Mar 22, 2024
1 parent ad21841 commit 5d5f073
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions tests/queries/0_stateless/03013_optimize_in_to_equal.sql
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;

0 comments on commit 5d5f073

Please sign in to comment.