From 0ae4bab0abdbfa357e5cd61116fe9d6a5ff508b7 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Tue, 29 Mar 2022 13:37:14 +0800 Subject: [PATCH] [td-13039] refactor. --- source/libs/executor/src/executorimpl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/libs/executor/src/executorimpl.c b/source/libs/executor/src/executorimpl.c index dbd25d3548..3282724ddd 100644 --- a/source/libs/executor/src/executorimpl.c +++ b/source/libs/executor/src/executorimpl.c @@ -8775,10 +8775,10 @@ SArray* extractColMatchInfo(SNodeList* pNodeList, SDataBlockDescNode* pOutputNod for(int32_t i = 0; i < num; ++i) { SSlotDescNode* pNode = (SSlotDescNode*) nodesListGetNode(pOutputNodeList->pSlots, i); SColMatchInfo* info = taosArrayGet(pList, pNode->slotId); - if (!pNode->output) { - info->output = false; - } else { + if (pNode->output) { (*numOfOutputCols) += 1; + } else { + info->output = false; } }