fix: when the set operator statement is used for subquery, the outer layer filtering fails.

This commit is contained in:
Xiaoyu Wang 2023-03-30 13:34:35 +08:00
parent f30cb8e527
commit 10979f6fc2
1 changed files with 1 additions and 1 deletions

View File

@ -1366,7 +1366,7 @@ static int32_t unAllSplCreateExchangeNode(SSplitContext* pCxt, int32_t startGrou
pExchange->node.precision = pProject->node.precision;
pExchange->node.pTargets = nodesCloneList(pProject->node.pTargets);
pExchange->node.pConditions = nodesCloneNode(pProject->node.pConditions);
if (NULL == pExchange->node.pTargets || NULL == pExchange->node.pConditions) {
if (NULL == pExchange->node.pTargets || (NULL != pProject->node.pConditions && NULL == pExchange->node.pConditions)) {
return TSDB_CODE_OUT_OF_MEMORY;
}
TSWAP(pExchange->node.pLimit, pProject->node.pLimit);