Added test [#CLICKHOUSE-2].

This commit is contained in:
Alexey Milovidov 2017-08-05 07:11:42 +03:00 committed by alexey-milovidov
parent d70f59e9bb
commit c2a32990bb
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,16 @@
['a\0\0\0\0','b\0\0\0\0','c\0\0\0\0']
['hello','world']
['a\0\0\0\0','b\0\0\0\0','c\0\0\0\0']
['hello','world']
['a\0\0\0\0','b\0\0\0\0','c\0\0\0\0']
['hello','world']
['a\0\0\0\0','b\0\0\0\0','c\0\0\0\0']
['hello','world']
['a\0\0\0\0','b\0\0\0\0','c\0\0\0\0']
['hello','world']
['a\0\0\0\0','b\0\0\0\0','c\0\0\0\0']
['hello','world']
['a\0\0\0\0','b\0\0\0\0','c\0\0\0\0']
['hello','world']
['a\0\0\0\0','b\0\0\0\0','c\0\0\0\0']
['hello','world']

View File

@ -0,0 +1,4 @@
SELECT number % 2 ? arrayMap(x -> toFixedString(x, 5), ['hello', 'world']) : arrayMap(x -> toFixedString(x, 5), ['a', 'b', 'c']) FROM system.numbers LIMIT 4;
SELECT number % 2 ? materialize(arrayMap(x -> toFixedString(x, 5), ['hello', 'world'])) : arrayMap(x -> toFixedString(x, 5), ['a', 'b', 'c']) FROM system.numbers LIMIT 4;
SELECT number % 2 ? arrayMap(x -> toFixedString(x, 5), ['hello', 'world']) : materialize(arrayMap(x -> toFixedString(x, 5), ['a', 'b', 'c'])) FROM system.numbers LIMIT 4;
SELECT number % 2 ? materialize(arrayMap(x -> toFixedString(x, 5), ['hello', 'world'])) : materialize(arrayMap(x -> toFixedString(x, 5), ['a', 'b', 'c'])) FROM system.numbers LIMIT 4;