mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 05:22:17 +00:00
5 lines
238 B
MySQL
5 lines
238 B
MySQL
|
select k, groupArraySample(10)(v) from (select number % 4 as k, number as v from numbers(1024)) group by k;
|
||
|
|
||
|
-- different seed
|
||
|
select k, groupArraySample(10, 1)(v) from (select number % 4 as k, number as v from numbers(1024)) group by k;
|