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 (#28625) (#29125)
  • Loading branch information
hust-hhb authored Dec 27, 2023
1 parent 5384fe6 commit 6ee53d2
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 @@ -524,10 +524,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 6ee53d2

Please sign in to comment.