Fixed error [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-01-14 04:25:35 +03:00
parent 3daa09da05
commit 15b5c27c1c
3 changed files with 3 additions and 1 deletions

View File

@ -510,7 +510,7 @@ MutableColumnPtr ColumnArray::filterGeneric(const Filter & filt, ssize_t result_
memset(&nested_filt[offsetAt(i)], 0, sizeAt(i));
}
auto res = ColumnArray::create(data);
auto res = ColumnArray::create(data->cloneEmpty());
ssize_t nested_result_size_hint = 0;
if (result_size_hint < 0)

View File

@ -0,0 +1 @@
[[1],[2]]

View File

@ -0,0 +1 @@
SELECT arrayJoin([[[1], [2]], [[1]]]) AS x WHERE length(x) = 2;