From 8ef84eeaa1af55d766b89d6f8ba6879abf2678ee Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Tue, 20 Apr 2021 03:16:39 +0300 Subject: [PATCH] Add test for #7815 --- .../01823_array_low_cardinality_KuliginStepan.reference | 1 + .../01823_array_low_cardinality_KuliginStepan.sql | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 tests/queries/0_stateless/01823_array_low_cardinality_KuliginStepan.reference create mode 100644 tests/queries/0_stateless/01823_array_low_cardinality_KuliginStepan.sql diff --git a/tests/queries/0_stateless/01823_array_low_cardinality_KuliginStepan.reference b/tests/queries/0_stateless/01823_array_low_cardinality_KuliginStepan.reference new file mode 100644 index 00000000000..2439021d2e0 --- /dev/null +++ b/tests/queries/0_stateless/01823_array_low_cardinality_KuliginStepan.reference @@ -0,0 +1 @@ +[['a'],['b','c']] diff --git a/tests/queries/0_stateless/01823_array_low_cardinality_KuliginStepan.sql b/tests/queries/0_stateless/01823_array_low_cardinality_KuliginStepan.sql new file mode 100644 index 00000000000..528a3b464b3 --- /dev/null +++ b/tests/queries/0_stateless/01823_array_low_cardinality_KuliginStepan.sql @@ -0,0 +1,7 @@ +create temporary table test ( + arr Array(Array(LowCardinality(String))) +); + +insert into test(arr) values ([['a'], ['b', 'c']]); + +select arrayFilter(x -> 1, arr) from test;