From 631dc310753f9f2f2cd70369010c572094936d28 Mon Sep 17 00:00:00 2001 From: Xiaoyu Wang Date: Fri, 6 May 2022 11:04:38 +0800 Subject: [PATCH] fix: result is incorrect in case of interval query with elapsed() --- src/query/src/qAggMain.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/query/src/qAggMain.c b/src/query/src/qAggMain.c index 3557e76f1a..5701f95f00 100644 --- a/src/query/src/qAggMain.c +++ b/src/query/src/qAggMain.c @@ -5185,10 +5185,6 @@ static bool elapsedSetup(SQLFunctionCtx *pCtx, SResultRowCellInfo* pResInfo) { return true; } -static int32_t elapsedRequired(SQLFunctionCtx *pCtx, STimeWindow* w, int32_t colId) { - return BLK_DATA_ALL_NEEDED; -} - static void elapsedFunction(SQLFunctionCtx *pCtx) { SElapsedInfo *pInfo = getOutputInfo(pCtx); if (pCtx->preAggVals.isSet) { @@ -6509,7 +6505,7 @@ SAggFunctionInfo aAggs[TSDB_FUNC_MAX_NUM] = {{ elapsedFunction, elapsedFinalizer, elapsedMerge, - elapsedRequired, + dataBlockRequired, }, { //38 -- GitLab