From 51a24022aaab7ab1d186b3f74d4dbe66b9e73f0f Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Sat, 18 Feb 2023 22:12:05 +0800 Subject: [PATCH] fix: reset prevValues of SFillInfo so that new group can use it as prev values --- src/query/src/qFill.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/query/src/qFill.c b/src/query/src/qFill.c index 021a0a8e51..755b59ef7d 100644 --- a/src/query/src/qFill.c +++ b/src/query/src/qFill.c @@ -399,6 +399,8 @@ void taosResetFillInfo(SFillInfo* pFillInfo, TSKEY startTimestamp) { pFillInfo->numOfRows = 0; pFillInfo->numOfCurrent = 0; pFillInfo->numOfTotal = 0; + //free prevValues so that the new group has no prevValues then fill(linear) of new group won't use old group values. + tfree(pFillInfo->prevValues); } void* taosDestroyFillInfo(SFillInfo* pFillInfo) { -- GitLab