ClickHouse/dbms/tests/queries/0_stateless/01050_group_array_sample.sql
2019-12-27 11:41:11 +08:00

5 lines
238 B
SQL

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;