From 9d60bcf3f95890cac13c9072af1b967e6f5595d5 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 24 Dec 2017 02:30:20 +0300 Subject: [PATCH] Added test for unrestricted aggregate function combinators [#CLICKHOUSE-3511]. --- .../0_stateless/00545_weird_aggregate_functions.reference | 1 + .../queries/0_stateless/00545_weird_aggregate_functions.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00545_weird_aggregate_functions.reference create mode 100644 dbms/tests/queries/0_stateless/00545_weird_aggregate_functions.sql diff --git a/dbms/tests/queries/0_stateless/00545_weird_aggregate_functions.reference b/dbms/tests/queries/0_stateless/00545_weird_aggregate_functions.reference new file mode 100644 index 00000000000..79ce2f9940a --- /dev/null +++ b/dbms/tests/queries/0_stateless/00545_weird_aggregate_functions.reference @@ -0,0 +1 @@ +[12,15,18] diff --git a/dbms/tests/queries/0_stateless/00545_weird_aggregate_functions.sql b/dbms/tests/queries/0_stateless/00545_weird_aggregate_functions.sql new file mode 100644 index 00000000000..1f662850d05 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00545_weird_aggregate_functions.sql @@ -0,0 +1 @@ +SELECT sumForEachMergeArray(y) FROM (SELECT sumForEachStateForEachIfArrayIfMerge(x) AS y FROM (SELECT sumForEachStateForEachIfArrayIfState([[[1, 2, 3], [4, 5, 6], [7, 8, 9]]], [1], 1) AS x));