提交 320525ed 编写于 作者: G Ganlin Zhao

fix(query): fix max/min with null input

上级 2dc24b26
......@@ -1577,6 +1577,11 @@ int32_t doMinMaxHelper(SqlFunctionCtx* pCtx, int32_t isMinFunc) {
}
}
if (numOfElems == 0) {
GET_RES_INFO(pCtx)->isNullRes = 1;
numOfElems = 1;
}
_min_max_over:
return numOfElems;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册