fix: qnode scale out issue

This commit is contained in:
dapan1121 2025-01-10 10:22:58 +08:00
parent d047ec23fd
commit cdd8246c1e
1 changed files with 15 additions and 14 deletions

View File

@ -151,7 +151,7 @@ static int32_t pushHierarchicalPlanForCompute(SNodeList* pParentsGroup, SNodeLis
SNode* pChild = NULL; SNode* pChild = NULL;
SNode* pParent = NULL; SNode* pParent = NULL;
int32_t code = TSDB_CODE_SUCCESS; int32_t code = TSDB_CODE_SUCCESS;
/* if (pParentsGroup->length == pCurrentGroup->length) {
FORBOTH(pChild, pCurrentGroup, pParent, pParentsGroup) { FORBOTH(pChild, pCurrentGroup, pParent, pParentsGroup) {
code = nodesListMakeAppend(&(((SLogicSubplan*)pParent)->pChildren), pChild); code = nodesListMakeAppend(&(((SLogicSubplan*)pParent)->pChildren), pChild);
if (TSDB_CODE_SUCCESS == code) { if (TSDB_CODE_SUCCESS == code) {
@ -161,7 +161,7 @@ static int32_t pushHierarchicalPlanForCompute(SNodeList* pParentsGroup, SNodeLis
break; break;
} }
} }
*/ } else {
FOREACH(pChild, pCurrentGroup) { FOREACH(pChild, pCurrentGroup) {
SNode* pParent = NULL; SNode* pParent = NULL;
FOREACH(pParent, pParentsGroup) { FOREACH(pParent, pParentsGroup) {
@ -171,6 +171,7 @@ static int32_t pushHierarchicalPlanForCompute(SNodeList* pParentsGroup, SNodeLis
} }
} }
} }
}
return code; return code;
} }