From 631f58cb94ce6c4b74671a3e91c0d81f1699f976 Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Fri, 5 Nov 2021 10:35:06 +0800 Subject: [PATCH] for non-scalar function, follow existing behavior --- src/client/src/tscSQLParser.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index 63bc3e4713..7512ff7f06 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -4373,9 +4373,11 @@ static int32_t validateSQLExprSQLFunc(SSqlCmd* pCmd, tSqlExpr* pExpr, (pParamElem->pNode->type == SQL_NODE_EXPR || pParamElem->pNode->type == SQL_NODE_SQLFUNCTION)) { return TSDB_CODE_TSC_INVALID_OPERATION; } - code = validateSQLExprItem(pCmd, pParamElem->pNode, pQueryInfo, pList, type, uid); - if (code != TSDB_CODE_SUCCESS) { - return code; + if (TSDB_FUNC_IS_SCALAR(functionId)) { + code = validateSQLExprItem(pCmd, pParamElem->pNode, pQueryInfo, pList, type, uid); + if (code != TSDB_CODE_SUCCESS) { + return code; + } } } } -- GitLab