From 1b90511233fa6f164032b862879d5991b58952fb Mon Sep 17 00:00:00 2001 From: Mryange Date: Thu, 14 Nov 2024 11:23:37 +0800 Subject: [PATCH] test --- be/src/vec/columns/column_array.cpp | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/be/src/vec/columns/column_array.cpp b/be/src/vec/columns/column_array.cpp index ca1f49a67f067f6..8c09228ff8cf0e5 100644 --- a/be/src/vec/columns/column_array.cpp +++ b/be/src/vec/columns/column_array.cpp @@ -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,