diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index 97875a5bb3865d3959a1a794f704a3c52d68c7dc..eaeb4e1976f6d848acd88f3d1fab9f2ea96c3bd2 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -5628,7 +5628,7 @@ int32_t doCheckForQuery(SSqlObj* pSql, SQuerySQL* pQuerySql, int32_t index) { return doLocalQueryProcess(pQueryInfo, pQuerySql); } - if (pQuerySql->from->nExpr > TSDB_MAX_JOIN_TABLE_NUM) { + if (pQuerySql->from->nExpr > 2) { // not allowed more than 2 table join return invalidSqlErrMsg(tscGetErrorMsgPayload(pCmd), msg7); }