提交 09dc2e4e 编写于 作者: G Ganlin Zhao

fix CI

上级 628ac58b
...@@ -791,8 +791,7 @@ int32_t avgFunction(SqlFunctionCtx* pCtx) { ...@@ -791,8 +791,7 @@ int32_t avgFunction(SqlFunctionCtx* pCtx) {
int32_t numOfRows = pInput->numOfRows; int32_t numOfRows = pInput->numOfRows;
if (IS_NULL_TYPE(type)) { if (IS_NULL_TYPE(type)) {
GET_RES_INFO(pCtx)->isNullRes = 1; numOfElem = 0;
numOfElem = 1;
goto _avg_over; goto _avg_over;
} }
...@@ -1100,9 +1099,9 @@ int32_t avgFinalize(SqlFunctionCtx* pCtx, SSDataBlock* pBlock) { ...@@ -1100,9 +1099,9 @@ 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)->numOfRes = 0; // GET_RES_INFO(pCtx)->numOfRes = 0;
} //}
return functionFinalize(pCtx, pBlock); return functionFinalize(pCtx, pBlock);
} }
...@@ -1792,8 +1791,7 @@ int32_t stddevFunction(SqlFunctionCtx* pCtx) { ...@@ -1792,8 +1791,7 @@ int32_t stddevFunction(SqlFunctionCtx* pCtx) {
int32_t numOfRows = pInput->numOfRows; int32_t numOfRows = pInput->numOfRows;
if (IS_NULL_TYPE(type)) { if (IS_NULL_TYPE(type)) {
GET_RES_INFO(pCtx)->isNullRes = 1; numOfElem = 0;
numOfElem = 1;
goto _stddev_over; goto _stddev_over;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册