fix bug
This commit is contained in:
parent
4a2bbfc6f9
commit
ee602ffb66
|
@ -921,6 +921,10 @@ static void minMax_function(SQLFunctionCtx *pCtx, char *pOutput, int32_t isMin,
|
||||||
*notNullElems = pCtx->size - pCtx->preAggVals.statis.numOfNull;
|
*notNullElems = pCtx->size - pCtx->preAggVals.statis.numOfNull;
|
||||||
assert(*notNullElems >= 0);
|
assert(*notNullElems >= 0);
|
||||||
|
|
||||||
|
if (*notNullElems == 0){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
void * tval = NULL;
|
void * tval = NULL;
|
||||||
int16_t index = 0;
|
int16_t index = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue