ClickHouse/tests/queries/0_stateless/02912_group_array_sample.sql
Alexey Milovidov 62819af191 Add a test
2023-11-07 00:27:17 +01:00

3 lines
207 B
SQL

-- 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);