diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index d92330b16af3436d9b8c384e021018ecb84f58c2..fec35da4da096b1d113125824fec8d61a4393029 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -7308,7 +7308,7 @@ int32_t doFunctionsCompatibleCheck(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, char* } if (TSDB_FUNC_IS_SCALAR(f)) { - continue; + return invalidOperationMsg(msg, msg1); } if ((!pQueryInfo->stateWindow) && (f == TSDB_FUNC_DIFF || f == TSDB_FUNC_DERIVATIVE || f == TSDB_FUNC_TWA || f == TSDB_FUNC_IRATE)) {