mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Added test.
This commit is contained in:
parent
820d2c63df
commit
b5fbd62a6f
@ -0,0 +1,2 @@
|
||||
0
|
||||
0
|
@ -0,0 +1,8 @@
|
||||
SELECT arrayExists(x -> ((x.1) = 'pattern'), cast([tuple('a', 1)] as Array(Tuple(LowCardinality(String), UInt8))));
|
||||
|
||||
DROP TABLE IF EXISTS table;
|
||||
CREATE TABLE table (id Int32, values Array(Tuple(LowCardinality(String), Int32)), date Date) ENGINE MergeTree() PARTITION BY toYYYYMM(date) ORDER BY (id, date);
|
||||
|
||||
SELECT count(*) FROM table WHERE (arrayExists(x -> ((x.1) = toLowCardinality('pattern')), values) = 1);
|
||||
|
||||
DROP TABLE IF EXISTS table;
|
Loading…
Reference in New Issue
Block a user