ClickHouse/tests/queries/0_stateless/01276_random_string.sql
2020-05-11 03:16:50 +03:00

2 lines
209 B
SQL

SELECT DISTINCT c > 30000 FROM (SELECT arrayJoin(arrayMap(x -> reinterpretAsUInt8(substring(randomString(100), x + 1, 1)), range(100))) AS byte, count() AS c FROM numbers(100000) GROUP BY byte ORDER BY byte);