Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangstar333 committed Oct 10, 2024
1 parent bc0fc89 commit de8cb0a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions be/src/vec/columns/column_string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,11 @@ void ColumnStr<T>::insert_many_from(const IColumn& src, size_t position, size_t

auto start_pos = old_size;
auto end_pos = old_size + length;
auto prev_pos = old_chars_size;
for (; start_pos < end_pos; ++start_pos) {
offsets[start_pos] = offsets[start_pos - 1] + data_length;
memcpy(chars.data() + offsets[start_pos], data_val, data_length);
memcpy(&chars[prev_pos], data_val, data_length);
offsets[start_pos] = prev_pos + data_length;
prev_pos = prev_pos + data_length;
}
}

Expand Down

0 comments on commit de8cb0a

Please sign in to comment.