fix: subplan type error and subplan scale out issue
This commit is contained in:
parent
9277b0285f
commit
d047ec23fd
|
@ -151,6 +151,7 @@ static int32_t pushHierarchicalPlanForCompute(SNodeList* pParentsGroup, SNodeLis
|
|||
SNode* pChild = NULL;
|
||||
SNode* pParent = NULL;
|
||||
int32_t code = TSDB_CODE_SUCCESS;
|
||||
/*
|
||||
FORBOTH(pChild, pCurrentGroup, pParent, pParentsGroup) {
|
||||
code = nodesListMakeAppend(&(((SLogicSubplan*)pParent)->pChildren), pChild);
|
||||
if (TSDB_CODE_SUCCESS == code) {
|
||||
|
@ -160,6 +161,17 @@ static int32_t pushHierarchicalPlanForCompute(SNodeList* pParentsGroup, SNodeLis
|
|||
break;
|
||||
}
|
||||
}
|
||||
*/
|
||||
FOREACH(pChild, pCurrentGroup) {
|
||||
SNode* pParent = NULL;
|
||||
FOREACH(pParent, pParentsGroup) {
|
||||
code = nodesListMakeAppend(&(((SLogicSubplan*)pParent)->pChildren), pChild);
|
||||
if (TSDB_CODE_SUCCESS == code) {
|
||||
code = nodesListMakeAppend(&(((SLogicSubplan*)pChild)->pParents), pParent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return code;
|
||||
}
|
||||
|
||||
|
|
|
@ -1438,9 +1438,10 @@ static int32_t stbSplSplitScanNodeWithoutPartTags(SSplitContext* pCxt, SStableSp
|
|||
SLogicNode* pSplitNode = NULL;
|
||||
int32_t code = stbSplGetSplitNodeForScan(pInfo, &pSplitNode);
|
||||
if (TSDB_CODE_SUCCESS == code) {
|
||||
code = splCreateExchangeNodeForSubplan(pCxt, pInfo->pSubplan, pSplitNode, SUBPLAN_TYPE_MERGE);
|
||||
code = splCreateExchangeNodeForSubplan(pCxt, pInfo->pSubplan, pSplitNode, pInfo->pSubplan->subplanType);
|
||||
}
|
||||
if (TSDB_CODE_SUCCESS == code) {
|
||||
splSetSubplanType(pInfo->pSubplan);
|
||||
code = nodesListMakeStrictAppend(&pInfo->pSubplan->pChildren,
|
||||
(SNode*)splCreateScanSubplan(pCxt, pSplitNode, SPLIT_FLAG_STABLE_SPLIT));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue