Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6ee53d2

Browse files
authored
[fix](compaction) compaction should catch exception when vertical block reader read next block (#28625) (#29125)
1 parent 5384fe6 commit 6ee53d2

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

be/src/vec/olap/vertical_block_reader.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -524,10 +524,12 @@ Status VerticalBlockReader::_unique_key_next_block(Block* block, bool* eof) {
524524
}
525525
const auto& src_block = _next_row.block;
526526
assert(src_block->columns() == column_count);
527-
for (size_t i = 0; i < column_count; ++i) {
528-
target_columns[i]->insert_from(*(src_block->get_by_position(i).column),
529-
_next_row.row_pos);
530-
}
527+
RETURN_IF_CATCH_EXCEPTION({
528+
for (size_t i = 0; i < column_count; ++i) {
529+
target_columns[i]->insert_from(*(src_block->get_by_position(i).column),
530+
_next_row.row_pos);
531+
}
532+
});
531533
++target_block_row;
532534
} while (target_block_row < _reader_context.batch_size);
533535
return Status::OK();

0 commit comments

Comments
 (0)