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

fix(query): fix sum/avg function floating type overflow

上级 72d9b078
......@@ -503,7 +503,7 @@ int32_t sumFunction(SqlFunctionCtx* pCtx) {
}
//check for overflow
if (isinf(pSumRes->dsum) || isnan(pSumRes->dsum)) {
if (IS_FLOAT_TYPE(type) && (isinf(pSumRes->dsum) || isnan(pSumRes->dsum))) {
GET_RES_INFO(pCtx)->isNullRes = 1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册