[fix](inverted index) fix check failed for block erase temp column (#20924)

This commit is contained in:
YueW
2023-06-18 19:27:48 +08:00
committed by GitHub
parent 48065fce19
commit d6b7640cf0
3 changed files with 7 additions and 1 deletions

View File

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