diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index 83e41c36a9f4944f211726e99276c4f69910d8bd..65b9af611aca39cf7a4ddd3ecc8bb20716f4a207 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -685,7 +685,7 @@ int32_t setSlidingClause(SQueryInfo* pQueryInfo, SQuerySQL* pQuerySql) { return invalidSqlErrMsg(pQueryInfo->msg, msg1); } } else { - pSliding->n = pQueryInfo->nAggTimeInterval; + pQueryInfo->nSlidingTime = -1; } return TSDB_CODE_SUCCESS;