Merge pull request #21430 from taosdata/fix/TD-24349

fix: last(tbname) out of memory issue
This commit is contained in:
dapan1121 2023-05-24 08:52:49 +08:00 committed by GitHub
commit 693bac60a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2233,7 +2233,7 @@ static bool lastRowScanOptMayBeOptimized(SLogicNode* pNode) {
SNode* pPar = nodesListGetNode(pAggFunc->pParameterList, 0);
if (QUERY_NODE_COLUMN == nodeType(pPar)) {
SColumnNode* pCol = (SColumnNode*)pPar;
if (pCol->colType == COLUMN_TYPE_TAG) {
if (pCol->colType != COLUMN_TYPE_COLUMN) {
return false;
}
}