提交 c0091afb 编写于 作者: G Ganlin Zhao

Merge branch '3.0' into enh/TD-17659

上级 63d8057a
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册