Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
Mryange committed Nov 18, 2024
1 parent e4a7464 commit 2274fba
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 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,8 @@ 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::NOT_IMPLEMENTED_ERROR,
"Method insert_data is not supported for " + get_name());
}

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

0 comments on commit 2274fba

Please sign in to comment.