check count & window

This commit is contained in:
Bob Liu 2023-12-27 01:05:04 +08:00
parent 42f9d54a70
commit 86351d5487
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ static int32_t createScanLogicNode(SLogicPlanContext* pCxt, SSelectStmt* pSelect
}
bool isCountByTag = false;
if (pSelect->hasCountFunc) {
if (pSelect->hasCountFunc && !pSelect->pWindow) {
if (pSelect->pGroupByList) {
isCountByTag = !keysHasCol(pSelect->pGroupByList);
} else if (pSelect->pPartitionByList) {