ClickHouse/tests/queries/0_stateless/01276_random_string.sql

2 lines
209 B
MySQL
Raw Normal View History

2020-05-11 00:16:50 +00:00
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);