ClickHouse/tests/queries/0_stateless/01277_random_fixed_string.sql

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

6 lines
426 B
MySQL
Raw Normal View History

2020-05-13 01:22:57 +00:00
SELECT randomFixedString('string'); -- { serverError 43 }
SELECT randomFixedString(0); -- { serverError 69 }
SELECT randomFixedString(rand() % 10); -- { serverError 44 }
SELECT toTypeName(randomFixedString(10));
2020-05-13 00:20:41 +00:00
SELECT DISTINCT c > 30000 FROM (SELECT arrayJoin(arrayMap(x -> reinterpretAsUInt8(substring(randomFixedString(100), x + 1, 1)), range(100))) AS byte, count() AS c FROM numbers(100000) GROUP BY byte ORDER BY byte);