From ee602ffb6673b74852da24d5415b38db602a272e Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Tue, 29 Dec 2020 02:52:57 +0000 Subject: [PATCH] fix bug --- src/client/src/tscFunctionImpl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client/src/tscFunctionImpl.c b/src/client/src/tscFunctionImpl.c index 22240efe14..3a01a9b281 100644 --- a/src/client/src/tscFunctionImpl.c +++ b/src/client/src/tscFunctionImpl.c @@ -921,6 +921,10 @@ static void minMax_function(SQLFunctionCtx *pCtx, char *pOutput, int32_t isMin, *notNullElems = pCtx->size - pCtx->preAggVals.statis.numOfNull; assert(*notNullElems >= 0); + if (*notNullElems == 0){ + return; + } + void * tval = NULL; int16_t index = 0; -- GitLab