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

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

3 lines
207 B
MySQL
Raw Normal View History

2023-11-06 23:27:17 +00:00
-- Checks that the random seed is different for multiple states of aggregation:
SELECT uniq(x) > 50 FROM (SELECT number, groupArraySample(10)(arrayJoin(range(1000))) AS x FROM numbers(100) GROUP BY number);