fix(query): avg/stddev divide 0 handling

TD-16762
This commit is contained in:
Ganlin Zhao 2022-06-23 13:58:36 +08:00
parent cfad058333
commit d5a27d50e3
1 changed files with 1 additions and 1 deletions

View File

@ -561,7 +561,7 @@ int32_t sumFunction(SqlFunctionCtx* pCtx) {
// check for overflow
if (IS_FLOAT_TYPE(type) && (isinf(pSumRes->dsum) || isnan(pSumRes->dsum))) {
GET_RES_INFO(pCtx)->isNullRes = 1;
numOfElems = 0;
}
_sum_over: