fix issues

This commit is contained in:
Andrei Nekrashevich 2020-05-13 04:22:57 +03:00
parent 767a790fce
commit 322e5bc4f5
2 changed files with 5 additions and 0 deletions

View File

@ -1 +1,2 @@
FixedString(10)
1

View File

@ -1 +1,5 @@
SELECT randomFixedString('string'); -- { serverError 43 }
SELECT randomFixedString(0); -- { serverError 69 }
SELECT randomFixedString(rand() % 10); -- { serverError 44 }
SELECT toTypeName(randomFixedString(10));
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);