diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index c917d60eb69df2a2ead0556b1c6c015f6dc75340..2c3c161ffc7069105b5a9492f818e9680eefe5d9 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -7513,7 +7513,7 @@ int32_t validateLimitNode(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, SSqlNode* pSqlN */ if (pQueryInfo->limit.limit > 0) { pQueryInfo->vgroupLimit = pQueryInfo->limit.limit + pQueryInfo->limit.offset; - pQueryInfo->limit.limit = -1; + //pQueryInfo->limit.limit = -1; } pQueryInfo->limit.offset = 0; diff --git a/src/client/src/tscSubquery.c b/src/client/src/tscSubquery.c index b64184ea0b5e91ba67fdea43020c6222ee7327ff..0eddfb78e3d2b0317ce989e16d6a036d5d3560db 100644 --- a/src/client/src/tscSubquery.c +++ b/src/client/src/tscSubquery.c @@ -3176,7 +3176,7 @@ static SSqlObj *tscCreateSTableSubquery(SSqlObj *pSql, SRetrieveSupport *trsuppo pQueryInfo->type |= TSDB_QUERY_TYPE_STABLE_SUBQUERY; // clear the limit/offset info, since it should not be sent to vnode to be executed. - pQueryInfo->limit.limit = -1; + // pQueryInfo->limit.limit = -1; // alexduan subquery limit is same with parent is ok pQueryInfo->limit.offset = 0; assert(trsupport->subqueryIndex < pSql->subState.numOfSub);