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 b2ff536050
commit 044f27bbca
1 changed files with 1 additions and 1 deletions

View File

@ -927,7 +927,7 @@ int32_t avgFinalize(SqlFunctionCtx* pCtx, SSDataBlock* pBlock) {
// check for overflow
if (isinf(pAvgRes->result) || isnan(pAvgRes->result)) {
GET_RES_INFO(pCtx)->isNullRes = 1;
GET_RES_INFO(pCtx)->numOfRes = 0;
}
return functionFinalize(pCtx, pBlock);