Skip to content

Commit

Permalink
[fix](compaction) compaction should catch exception when vertical blo…
Browse files Browse the repository at this point in the history
…ck reader read next block (apache#28625)
  • Loading branch information
hust-hhb authored Dec 21, 2023
1 parent 0070909 commit e74ff95
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions be/src/vec/olap/vertical_block_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,12 @@ Status VerticalBlockReader::_unique_key_next_block(Block* block, bool* eof) {
}
const auto& src_block = _next_row.block;
assert(src_block->columns() == column_count);
for (size_t i = 0; i < column_count; ++i) {
target_columns[i]->insert_from(*(src_block->get_by_position(i).column),
_next_row.row_pos);
}
RETURN_IF_CATCH_EXCEPTION({
for (size_t i = 0; i < column_count; ++i) {
target_columns[i]->insert_from(*(src_block->get_by_position(i).column),
_next_row.row_pos);
}
});
++target_block_row;
} while (target_block_row < _reader_context.batch_size);
return Status::OK();
Expand Down

0 comments on commit e74ff95

Please sign in to comment.