[fix](inverted index) fix check failed for block erase temp column (#20924)
This commit is contained in:
@ -213,6 +213,7 @@ Status VScanNode::get_next(RuntimeState* state, vectorized::Block* block, bool*
|
||||
// we built some temporary columns into block, these columns only used in scan node level,
|
||||
// remove them when query leave scan node to avoid other nodes use block->columns() to make a wrong decision
|
||||
Defer drop_block_temp_column {[&]() {
|
||||
std::unique_lock l(_block_lock);
|
||||
auto all_column_names = block->get_names();
|
||||
for (auto& name : all_column_names) {
|
||||
if (name.rfind(BeConsts::BLOCK_TEMP_COLUMN_PREFIX, 0) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user