From 1bc2f81b2092d548a9a1fbeca9cc2893775a8e10 Mon Sep 17 00:00:00 2001 From: slzhou Date: Sat, 25 Jun 2022 18:46:54 +0800 Subject: [PATCH] feat: add set op elimination --- source/libs/planner/src/planOptimizer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/libs/planner/src/planOptimizer.c b/source/libs/planner/src/planOptimizer.c index 34ab7b72b7..f1cad6010c 100644 --- a/source/libs/planner/src/planOptimizer.c +++ b/source/libs/planner/src/planOptimizer.c @@ -1215,7 +1215,8 @@ static int32_t eliminateSetOpOptimizeImpl(SOptimizeContext* pCxt, SLogicSubplan* FOREACH(pChild, pSetOpNode->pChildren) { ((SLogicNode*)pChild)->pParent = pSetOpNode->pParent; } - nodesListInsertList(pSetOpNode->pParent->pChildren, cell, pSetOpNode->pChildren); + INSERT_LIST(pSetOpNode->pParent->pChildren, pSetOpNode->pChildren); + pSetOpNode->pChildren = NULL; ERASE_NODE(pSetOpNode->pParent->pChildren); return TSDB_CODE_SUCCESS; -- GitLab