From e4216bbc87d3f4646b8e106738dc4752746d2e71 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Wed, 8 Jun 2022 16:29:34 +0800 Subject: [PATCH] fix bugs --- source/libs/function/src/builtinsimpl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/libs/function/src/builtinsimpl.c b/source/libs/function/src/builtinsimpl.c index acf2b348b4..34adf11032 100644 --- a/source/libs/function/src/builtinsimpl.c +++ b/source/libs/function/src/builtinsimpl.c @@ -2969,12 +2969,13 @@ int32_t spreadFunctionMerge(SqlFunctionCtx *pCtx) { char* data = colDataGetData(pCol, start); pInputInfo = (SSpreadInfo *)varDataVal(data); + pInfo->hasResult = pInputInfo->hasResult; if (pInputInfo->max > pInfo->max) { - pInfo->max =pInputInfo->max; + pInfo->max = pInputInfo->max; } if (pInputInfo->min < pInfo->min) { - pInfo->min =pInputInfo->min; + pInfo->min = pInputInfo->min; } SET_VAL(GET_RES_INFO(pCtx), 1, 1); -- GitLab