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

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


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 185353e8909 [Fix](inverted index) gc TEMP colum when next_batch in 
segment iterator (#40563)
185353e8909 is described below

commit 185353e8909d9efd15c8be6ea89ca63976c12154
Author: airborne12 <airborn...@gmail.com>
AuthorDate: Tue Sep 10 09:56:03 2024 +0800

    [Fix](inverted index) gc TEMP colum when next_batch in segment iterator 
(#40563)
    
    ## Proposed changes
    
    Issue Number: close #xxx
    
    <!--Describe your changes.-->
---
 be/src/olap/rowset/segment_v2/segment_iterator.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/be/src/olap/rowset/segment_v2/segment_iterator.cpp 
b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
index b209c0548d5..a96858821e5 100644
--- a/be/src/olap/rowset/segment_v2/segment_iterator.cpp
+++ b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
@@ -2352,6 +2352,8 @@ Status 
SegmentIterator::copy_column_data_by_selector(vectorized::IColumn* input_
 }
 
 Status SegmentIterator::_next_batch_internal(vectorized::Block* block) {
+    // TEMP column in block is not allowed here, need to erase.
+    block->erase_tmp_columns();
     bool is_mem_reuse = block->mem_reuse();
     DCHECK(is_mem_reuse);
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to