[Fix](inverted index) gc TEMP colum when next_batch in segment iterator (#40563)

## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->
This commit is contained in:
airborne12
2024-09-10 09:56:03 +08:00
committed by GitHub
parent 978fcf12b6
commit 185353e890

View File

@ -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);