Added a test for #11364

This commit is contained in:
Alexey Milovidov 2020-10-28 03:13:59 +03:00
parent 4911f334bf
commit 309e1c622f
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,3 @@
[NULL]
[1,1]
\N 70

View File

@ -0,0 +1,12 @@
SELECT arrayMap(x -> concat(x, concat(arrayJoin([1]), x, NULL), ''), [1]);
SELECT arrayMap(x -> arrayJoin([1]), [1, 2]);
SELECT
arrayJoin(arrayMap(x -> reinterpretAsUInt8(substring(randomString(range(randomString(1048577), NULL), arrayJoin(arrayMap(x -> reinterpretAsUInt8(substring(randomString(range(NULL), 65537), 255)), range(1))), substring(randomString(NULL), x + 7), '257'), 1025)), range(7))) AS byte,
count() AS c
FROM numbers(10)
GROUP BY
arrayMap(x -> reinterpretAsUInt8(substring(randomString(randomString(range(randomString(255), NULL)), NULL))), range(3)),
randomString(range(randomString(1048577), NULL), NULL),
byte
ORDER BY byte ASC;