Added test

This commit is contained in:
Nikolai Kochetov 2018-11-22 18:52:26 +03:00
parent 4721b16b51
commit a29fd043a4
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,11 @@
[]
[0]
[0]
[0,2]
[0,2]
[0,2,4]
[0,2,4]
[0,2,4,6]
[0,2,4,6]
[0,2,4,6,8]

View File

@ -0,0 +1,7 @@
set allow_experimental_low_cardinality_type = 1;
drop table if exists test.lc_lambda;
create table test.lc_lambda (arr Array(LowCardinality(UInt64))) engine = Memory;
insert into test.lc_lambda select range(number) from system.numbers limit 10;
select arrayFilter(x -> x % 2 == 0, arr) from test.lc_lambda;
drop table if exists test.lc_lambda;