mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
dbms: added test [#METR-15293].
This commit is contained in:
parent
4de3ba0bc6
commit
47287b709c
27
dbms/tests/queries/0_stateless/00132_sets.reference
Normal file
27
dbms/tests/queries/0_stateless/00132_sets.reference
Normal file
@ -0,0 +1,27 @@
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
0
|
||||
0
|
||||
1
|
||||
0
|
||||
0
|
||||
1
|
||||
0
|
||||
0
|
||||
1
|
||||
0
|
||||
1
|
||||
0
|
||||
1
|
||||
1
|
||||
0
|
||||
0
|
||||
1
|
||||
1
|
||||
0
|
||||
1
|
21
dbms/tests/queries/0_stateless/00132_sets.sql
Normal file
21
dbms/tests/queries/0_stateless/00132_sets.sql
Normal file
@ -0,0 +1,21 @@
|
||||
SELECT 1 IN (1, 2, 3);
|
||||
SELECT toUInt16(1) IN (1, 1000, 3);
|
||||
SELECT [1, 2, 3] IN (3, 4, 5);
|
||||
SELECT materialize([1, 2, 3]) IN (3, 4, 5);
|
||||
SELECT 'Hello' IN ('Hello', 'world');
|
||||
SELECT (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17) IN ((1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17));
|
||||
SELECT (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, '') IN ((1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, ''));
|
||||
SELECT (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, '') IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'a');
|
||||
SELECT (number AS n, n + 1, n + 2, n + 3) IN (1, 2, 3, 4) FROM system.numbers LIMIT 3;
|
||||
SELECT (number AS n, n + 1, n + 2, n + 3, n - 1) IN (1, 2, 3, 4, 0) FROM system.numbers LIMIT 3;
|
||||
SELECT (number AS n, n + 1, toString(n + 2), n + 3, n - 1) IN (1, 2, '3', 4, 0) FROM system.numbers LIMIT 3;
|
||||
SELECT [1, 2, 3] IN (2);
|
||||
SELECT [1, 2, 3] IN (4);
|
||||
SELECT [1, 2, 3] NOT IN (1);
|
||||
SELECT [1, 2, 3] NOT IN (1, 2);
|
||||
SELECT [1, 2, 3] NOT IN (1, 2, 3);
|
||||
SELECT [1, 2, 3] NOT IN (1, 2, 3, 4);
|
||||
SELECT ['Hello', 'world'] IN ('world');
|
||||
SELECT ['Hello', 'world'] NOT IN ('world');
|
||||
SELECT ['Hello', 'world'] NOT IN ('Hello', 'world');
|
||||
SELECT ['Hello', 'world'] NOT IN ('hello', 'world');
|
Loading…
Reference in New Issue
Block a user