parent
cfad058333
commit
d5a27d50e3
|
@ -561,7 +561,7 @@ int32_t sumFunction(SqlFunctionCtx* pCtx) {
|
||||||
|
|
||||||
// check for overflow
|
// check for overflow
|
||||||
if (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;
|
numOfElems = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
_sum_over:
|
_sum_over:
|
||||||
|
|
Loading…
Reference in New Issue