This commit is contained in:
dapan1121 2020-12-29 02:52:57 +00:00
parent 4a2bbfc6f9
commit ee602ffb66
1 changed files with 4 additions and 0 deletions

View File

@ -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;