From 3b91d525187e122bca0effa523cdc672e4caeb5e Mon Sep 17 00:00:00 2001 From: hjxilinx Date: Wed, 25 Mar 2020 22:22:57 +0800 Subject: [PATCH] [TD-28] fix bugs in sliding query when interpolation is involved. --- src/system/detail/src/vnodeQueryImpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/detail/src/vnodeQueryImpl.c b/src/system/detail/src/vnodeQueryImpl.c index 28837592c5..32f09aee31 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; } -- GitLab