mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
fix empty arrays bug
This commit is contained in:
parent
9e91e19f2b
commit
cb2976491b
@ -159,8 +159,9 @@ public:
|
|||||||
std::vector<MutableColumns> data_arrays;
|
std::vector<MutableColumns> data_arrays;
|
||||||
data_arrays.resize(array_count);
|
data_arrays.resize(array_count);
|
||||||
|
|
||||||
for (size_t i = 0; i < array_count; ++i)
|
if (max_array_size > 0)
|
||||||
data_arrays[i] = arrays[i].column->scatter(max_array_size, selector);
|
for (size_t i = 0; i < array_count; ++i)
|
||||||
|
data_arrays[i] = arrays[i].column->scatter(max_array_size, selector);
|
||||||
|
|
||||||
size_t prev_size = rows_count;
|
size_t prev_size = rows_count;
|
||||||
IColumn::Permutation inverse_permutation(rows_count);
|
IColumn::Permutation inverse_permutation(rows_count);
|
||||||
|
Loading…
Reference in New Issue
Block a user