diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index 63bc3e4713547eea856b1e0c41731da0c640b007..7512ff7f062cdcd89aab1854788a2ff79101e97f 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; + } } } }