ClickHouse/tests/queries/0_stateless/01050_group_array_sample.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
268 B
MySQL
Raw Normal View History

2022-09-29 19:26:52 +00:00
select k, groupArraySample(10, 123456)(v) from (select number % 4 as k, number as v from numbers(1024)) group by k order by k;
2019-12-19 07:42:46 +00:00
-- different seed
2022-09-29 19:26:52 +00:00
select k, groupArraySample(10, 1)(v) from (select number % 4 as k, number as v from numbers(1024)) group by k order by k;