mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
dbms: added test [#METR-18382].
This commit is contained in:
parent
bb283e6602
commit
7f06d70d45
20
dbms/tests/queries/0_stateless/00251_has_types.reference
Normal file
20
dbms/tests/queries/0_stateless/00251_has_types.reference
Normal file
@ -0,0 +1,20 @@
|
||||
1
|
||||
1
|
||||
0
|
||||
1
|
||||
0
|
||||
1
|
||||
1
|
||||
0
|
||||
1
|
||||
0
|
||||
1
|
||||
1
|
||||
0
|
||||
1
|
||||
0
|
||||
1
|
||||
1
|
||||
0
|
||||
1
|
||||
0
|
23
dbms/tests/queries/0_stateless/00251_has_types.sql
Normal file
23
dbms/tests/queries/0_stateless/00251_has_types.sql
Normal file
@ -0,0 +1,23 @@
|
||||
SELECT has([1, 2, 3], 3.0);
|
||||
SELECT has([1, 2.0, 3], 2);
|
||||
SELECT has([1, 2.1, 3], 2);
|
||||
SELECT has([1, -1], 1);
|
||||
SELECT has([1, -1], 1000);
|
||||
|
||||
SELECT has(materialize([1, 2, 3]), 3.0);
|
||||
SELECT has(materialize([1, 2.0, 3]), 2);
|
||||
SELECT has(materialize([1, 2.1, 3]), 2);
|
||||
SELECT has(materialize([1, -1]), 1);
|
||||
SELECT has(materialize([1, -1]), 1000);
|
||||
|
||||
SELECT has([1, 2, 3], materialize(3.0));
|
||||
SELECT has([1, 2.0, 3], materialize(2));
|
||||
SELECT has([1, 2.1, 3], materialize(2));
|
||||
SELECT has([1, -1], materialize(1));
|
||||
SELECT has([1, -1], materialize(1000));
|
||||
|
||||
SELECT has(materialize([1, 2, 3]), materialize(3.0));
|
||||
SELECT has(materialize([1, 2.0, 3]), materialize(2));
|
||||
SELECT has(materialize([1, 2.1, 3]), materialize(2));
|
||||
SELECT has(materialize([1, -1]), materialize(1));
|
||||
SELECT has(materialize([1, -1]), materialize(1000));
|
Loading…
Reference in New Issue
Block a user