feat: add set op elimination

This commit is contained in:
slzhou 2022-06-25 18:46:54 +08:00
parent 297c848e61
commit 1bc2f81b20
1 changed files with 2 additions and 1 deletions

View File

@ -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;