Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mryange committed Nov 14, 2024
1 parent 3d7785d commit 1b90511
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions be/src/vec/columns/column_array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,30 +187,9 @@ bool ColumnArray::is_default_at(size_t n) const {
}

void ColumnArray::insert_data(const char* pos, size_t length) {
/** Similarly - only for arrays of fixed length values.
*/
if (!data->is_fixed_and_contiguous()) {
throw doris::Exception(ErrorCode::INTERNAL_ERROR,
"Method insert_data should have_fixed_size, {} is not suitable",
get_name());
}

size_t field_size = data->size_of_value_if_fixed();

size_t elems = 0;

if (length) {
const char* end = pos + length;
for (; pos + field_size <= end; pos += field_size, ++elems)
data->insert_data(pos, field_size);

if (pos != end)
throw doris::Exception(ErrorCode::INTERNAL_ERROR,
"Incorrect length argument for method ColumnArray::insert_data");
__builtin_unreachable();
}

get_offsets().push_back(get_offsets().back() + elems);
throw doris::Exception(ErrorCode::INTERNAL_ERROR,
"Method insert_data should have_fixed_size, {} is not suitable",
get_name());
}

StringRef ColumnArray::serialize_value_into_arena(size_t n, Arena& arena,
Expand Down

0 comments on commit 1b90511

Please sign in to comment.