diff --git a/src/system/detail/src/vnodeQueryImpl.c b/src/system/detail/src/vnodeQueryImpl.c index 85a8c1c64dd7e7100843d5c80336ea3c539e2fe4..eb6edf66135b67d241527a6fe4c6f672571301e6 100644 --- a/src/system/detail/src/vnodeQueryImpl.c +++ b/src/system/detail/src/vnodeQueryImpl.c @@ -4021,6 +4021,7 @@ bool normalizedFirstQueryRange(bool dataInDisk, bool dataInCache, STableQuerySup if (nextKey != pQuery->skey) { if (!pRuntimeEnv->hasTimeWindow) { pQuery->skey = nextKey; // change the query skey + pQuery->lastKey = pQuery->skey; } return true; } else {