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) +