This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 6ee53d2790d [fix](compaction) compaction should catch exception when 
vertical block reader read next block (#28625) (#29125)
6ee53d2790d is described below

commit 6ee53d2790d3c4f167e2a12b7c7faf6dc39cb719
Author: huanghaibin <[email protected]>
AuthorDate: Wed Dec 27 22:25:44 2023 +0800

    [fix](compaction) compaction should catch exception when vertical block 
reader read next block (#28625) (#29125)
---
 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 0b2cb065b08..8c95b0d9260 100644
--- a/be/src/vec/olap/vertical_block_reader.cpp
+++ b/be/src/vec/olap/vertical_block_reader.cpp
@@ -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();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to