From a29fd043a44865b3b537ad64f8b378aa779b0915 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Thu, 22 Nov 2018 18:52:26 +0300 Subject: [PATCH] Added test --- .../00752_low_cardinality_lambda_argument.reference | 11 +++++++++++ .../00752_low_cardinality_lambda_argument.sql | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00752_low_cardinality_lambda_argument.reference create mode 100644 dbms/tests/queries/0_stateless/00752_low_cardinality_lambda_argument.sql diff --git a/dbms/tests/queries/0_stateless/00752_low_cardinality_lambda_argument.reference b/dbms/tests/queries/0_stateless/00752_low_cardinality_lambda_argument.reference new file mode 100644 index 00000000000..f00e82d5964 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00752_low_cardinality_lambda_argument.reference @@ -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] + diff --git a/dbms/tests/queries/0_stateless/00752_low_cardinality_lambda_argument.sql b/dbms/tests/queries/0_stateless/00752_low_cardinality_lambda_argument.sql new file mode 100644 index 00000000000..eea080d7b9a --- /dev/null +++ b/dbms/tests/queries/0_stateless/00752_low_cardinality_lambda_argument.sql @@ -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; +