[fix](array-type) fix be occasional coredump when use stream load (#11997)

Co-authored-by: hucheng01 <hucheng01@baidu.com>
This commit is contained in:
carlvinhust2012
2022-08-23 21:54:00 +08:00
committed by GitHub
parent 1056a6d8c7
commit cbbf4e10ff
2 changed files with 4 additions and 0 deletions

View File

@ -172,6 +172,9 @@ RowBatch::RowBatch(const RowDescriptor& row_desc, const PRowBatch& input_batch)
// copy collection slots
for (auto slot_collection : desc->collection_slots()) {
DCHECK(slot_collection->type().is_collection_type());
if (tuple->is_null(slot_collection->null_indicator_offset())) {
continue;
}
CollectionValue* array_val =
tuple->get_collection_slot(slot_collection->tuple_offset());