diff --git a/src/system/detail/src/vnodeQueryImpl.c b/src/system/detail/src/vnodeQueryImpl.c index 28837592c536ff18f4201d677d544839927f8bd5..32f09aee310764baf6264c12369a723846646b85 100644 --- a/src/system/detail/src/vnodeQueryImpl.c +++ b/src/system/detail/src/vnodeQueryImpl.c @@ -2087,7 +2087,7 @@ static void doInterpolatePrevTimeWindow(SQueryRuntimeEnv* pRuntimeEnv, SWindowRe SQuery* pQuery = pRuntimeEnv->pQuery; int32_t slot = pWindowResInfo->curIndex; - if (slot == -1) { + if (slot == -1 || !pRuntimeEnv->interpoSearch) { return; }