From ffbe3d3c4002980e7dd76cda1db384f532745d70 Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Thu, 25 Nov 2021 10:10:34 +0800 Subject: [PATCH] count(tbname): forbidden using with aggUdf as well --- src/client/src/tscSQLParser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index 88082a4034..da903b4ffd 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -3585,7 +3585,7 @@ static bool functionCompatibleCheck(SQueryInfo* pQueryInfo, bool joinQuery, bool return false; } - if (countTbname && (prjNum > 0 || aggNum > 0 || scalarUdf > 0)) { + if (countTbname && (prjNum > 0 || aggNum > 0 || scalarUdf > 0 || aggUdf > 0)) { return false; } -- GitLab