未验证 提交 cbdabcd5 编写于 作者: H haojun Liao 提交者: GitHub

Merge pull request #4751 from taosdata/hotfix/TD-2583

[TD-2583]<fix>:function min gets  result value zero  when column values contain NULL
......@@ -921,6 +921,10 @@ static void minMax_function(SQLFunctionCtx *pCtx, char *pOutput, int32_t isMin,
*notNullElems = pCtx->size - pCtx->preAggVals.statis.numOfNull;
assert(*notNullElems >= 0);
if (*notNullElems == 0){
return;
}
void * tval = NULL;
int16_t index = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册