Merge branch '3.0' into enh/TD-17659

This commit is contained in:
Ganlin Zhao 2022-07-26 20:23:13 +08:00
parent 63d8057ade
commit c0091afb01
1 changed files with 1 additions and 6 deletions

View File

@ -662,7 +662,7 @@ int32_t sumFunction(SqlFunctionCtx* pCtx) {
}
// check for overflow
if (numOfElem == 0 || (IS_FLOAT_TYPE(type) && (isinf(pSumRes->dsum) || isnan(pSumRes->dsum)))) {
if (IS_FLOAT_TYPE(type) && (isinf(pSumRes->dsum) || isnan(pSumRes->dsum))) {
GET_RES_INFO(pCtx)->isNullRes = 1;
numOfElem = 1;
}
@ -1577,11 +1577,6 @@ int32_t doMinMaxHelper(SqlFunctionCtx* pCtx, int32_t isMinFunc) {
}
}
if (numOfElems == 0) {
GET_RES_INFO(pCtx)->isNullRes = 1;
numOfElems = 1;
}
_min_max_over:
return numOfElems;
}