From 8ad9d10c4f5168347cbc73c3387ec3b51bc2cffa Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Tue, 29 Apr 2014 05:18:28 +0400 Subject: [PATCH] dbms: added tests [#METR-2944]. --- .../queries/0_stateless/00040_array_enumerate_uniq.reference | 1 + dbms/tests/queries/0_stateless/00040_array_enumerate_uniq.sql | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00040_array_enumerate_uniq.reference create mode 100644 dbms/tests/queries/0_stateless/00040_array_enumerate_uniq.sql diff --git a/dbms/tests/queries/0_stateless/00040_array_enumerate_uniq.reference b/dbms/tests/queries/0_stateless/00040_array_enumerate_uniq.reference new file mode 100644 index 00000000000..1e8b3149621 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00040_array_enumerate_uniq.reference @@ -0,0 +1 @@ +6 diff --git a/dbms/tests/queries/0_stateless/00040_array_enumerate_uniq.sql b/dbms/tests/queries/0_stateless/00040_array_enumerate_uniq.sql new file mode 100644 index 00000000000..7019770521a --- /dev/null +++ b/dbms/tests/queries/0_stateless/00040_array_enumerate_uniq.sql @@ -0,0 +1,2 @@ +SELECT max(arrayJoin(arr)) FROM (SELECT arrayEnumerateUniq(groupArray(intDiv(number, 54321)) AS nums, groupArray(toString(intDiv(number, 98765)))) AS arr FROM (SELECT number FROM system.numbers LIMIT 1000000) GROUP BY intHash32(number) % 100000) +