liutang123 commented on a change in pull request #5983: URL: https://github.com/apache/incubator-doris/pull/5983#discussion_r648829333
########## File path: be/src/olap/column_vector.cpp ########## @@ -127,8 +127,22 @@ Status ColumnVectorBatch::create(size_t init_capacity, bool is_nullable, const T return Status::NotSupported( "When create ArrayColumnVectorBatch, `Field` is indispensable"); } + + std::unique_ptr<ColumnVectorBatch> elements; + auto array_type_info = reinterpret_cast<const ArrayTypeInfo*>(type_info); + RETURN_IF_ERROR(ColumnVectorBatch::create(init_capacity * 2, field->get_sub_field(0)->is_nullable(), + array_type_info->item_type_info(), field->get_sub_field(0), &elements)); + + std::unique_ptr<ColumnVectorBatch> offsets; + TypeInfo* bigint_type_info = get_scalar_type_info(FieldType::OLAP_FIELD_TYPE_UNSIGNED_BIGINT); + RETURN_IF_ERROR(ColumnVectorBatch::create(init_capacity + 1, false, + bigint_type_info, nullptr, &offsets)); + std::unique_ptr<ColumnVectorBatch> local( Review comment: It means a local variable. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org