add tag for last row

This commit is contained in:
54liuyao 2024-04-09 14:53:50 +08:00
parent e0a5b2dd9d
commit 0f6e87b3c9
1 changed files with 7 additions and 0 deletions

View File

@ -2943,6 +2943,13 @@ static int32_t lastRowScanOptimize(SOptimizeContext* pCxt, SLogicSubplan* pLogic
}
}
}
FOREACH(pColNode, pScan->pScanPseudoCols) {
if (nodesEqualNode(pParamNode, pColNode)) {
if (funcType != FUNCTION_TYPE_LAST) {
nodesListMakeAppend(&pLastRowCols, nodesCloneNode(pColNode));
}
}
}
}
}