parent
b2f19def37
commit
37a9143fcb
|
@ -1992,7 +1992,7 @@ int32_t avgScalarFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *
|
|||
}
|
||||
}
|
||||
|
||||
if (hasNull) {
|
||||
if (hasNull || (count == 0)) {
|
||||
colDataAppendNULL(pOutputData, 0);
|
||||
} else {
|
||||
if (IS_SIGNED_NUMERIC_TYPE(type)) {
|
||||
|
|
Loading…
Reference in New Issue