From ab6ed4bffa35f61587b750dd7204690ba696ac5b Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Thu, 14 Jul 2022 20:37:07 +0800 Subject: [PATCH] fix(query): add exec node for lastrow query. --- source/libs/planner/src/planPhysiCreater.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/libs/planner/src/planPhysiCreater.c b/source/libs/planner/src/planPhysiCreater.c index c4cc31c535..27948212ea 100644 --- a/source/libs/planner/src/planPhysiCreater.c +++ b/source/libs/planner/src/planPhysiCreater.c @@ -513,7 +513,9 @@ static int32_t createLastRowScanPhysiNode(SPhysiPlanContext* pCxt, SSubplan* pSu nodesDestroyNode((SNode*)pScan); return TSDB_CODE_OUT_OF_MEMORY; } + pScan->groupSort = pScanLogicNode->groupSort; + vgroupInfoToNodeAddr(pScanLogicNode->pVgroupList->vgroups, &pSubplan->execNode); return createScanPhysiNodeFinalize(pCxt, pSubplan, pScanLogicNode, (SScanPhysiNode*)pScan, pPhyNode); } -- GitLab