[Bug][Vectorized] Fix DCHECK failed in VExchangeNode close twice (#10184)

Co-authored-by: lihaopeng <lihaopeng@baidu.com>
This commit is contained in:
HappenLee
2022-06-16 23:56:49 +08:00
committed by GitHub
parent f1c9105af1
commit 8d98c17c4e
2 changed files with 5 additions and 1 deletions

View File

@ -218,6 +218,7 @@ Status VUnionNode::get_next(RuntimeState* state, Block* block, bool* eos) {
RETURN_IF_CANCELLED(state);
// RETURN_IF_ERROR(QueryMaintenance(state));
// TODO: Rethink the logic, which cause close the exec node twice.
if (_to_close_child_idx != -1) {
// The previous child needs to be closed if passthrough was enabled for it. In the non
// passthrough case, the child was already closed in the previous call to get_next().