[Bug](function) fix dcheck fail on close vexpr ctx (#11908)

This commit is contained in:
Pxl
2022-08-19 19:11:10 +08:00
committed by GitHub
parent c82d7687b4
commit 64dc3b360f
6 changed files with 12 additions and 13 deletions

View File

@ -62,6 +62,7 @@ void ScanNode::_peel_pushed_vconjunct(RuntimeState* state,
vectorized::VExpr* new_conjunct_expr_root = vectorized::VectorizedUtils::dfs_peel_conjunct(
state, *_vconjunct_ctx_ptr, conjunct_expr_root, leaf_index, checker);
if (new_conjunct_expr_root == nullptr) {
(*_vconjunct_ctx_ptr)->close(state);
_vconjunct_ctx_ptr.reset(nullptr);
} else {
(*_vconjunct_ctx_ptr)->set_root(new_conjunct_expr_root);