parent
b2ff536050
commit
044f27bbca
|
@ -927,7 +927,7 @@ int32_t avgFinalize(SqlFunctionCtx* pCtx, SSDataBlock* pBlock) {
|
||||||
|
|
||||||
// check for overflow
|
// check for overflow
|
||||||
if (isinf(pAvgRes->result) || isnan(pAvgRes->result)) {
|
if (isinf(pAvgRes->result) || isnan(pAvgRes->result)) {
|
||||||
GET_RES_INFO(pCtx)->isNullRes = 1;
|
GET_RES_INFO(pCtx)->numOfRes = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return functionFinalize(pCtx, pBlock);
|
return functionFinalize(pCtx, pBlock);
|
||||||
|
|
Loading…
Reference in New Issue