fix: select last(*) ..group by tag return wrong rows of data
This commit is contained in:
parent
8eacc51ade
commit
3dbbe63092
|
@ -2377,7 +2377,7 @@ static int32_t lastRowScanOptimize(SOptimizeContext* pCxt, SLogicSubplan* pLogic
|
||||||
if (NULL != cxt.pLastCols) {
|
if (NULL != cxt.pLastCols) {
|
||||||
cxt.doAgg = false;
|
cxt.doAgg = false;
|
||||||
lastRowScanOptSetLastTargets(pScan->pScanCols, cxt.pLastCols);
|
lastRowScanOptSetLastTargets(pScan->pScanCols, cxt.pLastCols);
|
||||||
NODES_DESTORY_LIST(pScan->pScanPseudoCols);
|
nodesWalkExprs(pScan->pScanPseudoCols, lastRowScanOptSetColDataType, &cxt);
|
||||||
lastRowScanOptSetLastTargets(pScan->node.pTargets, cxt.pLastCols);
|
lastRowScanOptSetLastTargets(pScan->node.pTargets, cxt.pLastCols);
|
||||||
nodesClearList(cxt.pLastCols);
|
nodesClearList(cxt.pLastCols);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue