[feature-wip](array-type) Support insertion for vectorized engine. (#8494) (#8590)

Please refer to #8493
This commit is contained in:
Adonis Ling
2022-03-22 15:48:13 +08:00
committed by GitHub
parent 71ce3c4a6e
commit 2580da4f72
20 changed files with 789 additions and 484 deletions

View File

@ -311,7 +311,8 @@ void ColumnArray::insert_range_from(const IColumn & src, size_t start, size_t le
cur_offsets.assign(src_offsets.begin(), src_offsets.begin() + length);
} else {
size_t old_size = cur_offsets.size();
size_t prev_max_offset = old_size ? cur_offsets.back() : 0;
// -1 is ok, because PaddedPODArray pads zeros on the left.
size_t prev_max_offset = cur_offsets.back();
cur_offsets.resize(old_size + length);
for (size_t i = 0; i < length; ++i)