diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index c51ec31b8170f0cfecd4046482bf7a0b9edb1730..dc1338be680d2062b00fe5838de3a1dacdf73772 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -914,7 +914,7 @@ static int32_t createMultiResFuncsFromStar(STranslateContext* pCxt, SFunctionNod } static bool isCountStar(SNode* pNode) { - if (QUERY_NODE_FUNCTION != nodeType(pNode)) { + if (QUERY_NODE_FUNCTION != nodeType(pNode) || 1 != LIST_LENGTH(((SFunctionNode*)pNode)->pParameterList)) { return false; } SNode* pPara = nodesListGetNode(((SFunctionNode*)pNode)->pParameterList, 0);