This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new e74ff950875 [fix](compaction) compaction should catch exception when
vertical block reader read next block (#28625)
e74ff950875 is described below
commit e74ff950875808258894c485662e109e5dca9c3f
Author: huanghaibin <[email protected]>
AuthorDate: Thu Dec 21 20:30:37 2023 +0800
[fix](compaction) compaction should catch exception when vertical block
reader read next block (#28625)
---
be/src/vec/olap/vertical_block_reader.cpp | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/be/src/vec/olap/vertical_block_reader.cpp
b/be/src/vec/olap/vertical_block_reader.cpp
index aa16c91cbd2..3f4a0cd3a12 100644
--- a/be/src/vec/olap/vertical_block_reader.cpp
+++ b/be/src/vec/olap/vertical_block_reader.cpp
@@ -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();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]