ClickHouse/dbms/tests/queries/0_stateless/00040_array_enumerate_uniq.sql

3 lines
247 B
MySQL
Raw Normal View History

2014-04-29 01:18:28 +00:00
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)