fix:[TS-5150] Fix stddev wrong result with null type.

This commit is contained in:
sima 2024-07-11 11:41:06 +08:00
parent 6272fb831f
commit c25bc3f2ca
1 changed files with 3 additions and 0 deletions

View File

@ -1441,6 +1441,9 @@ _stddev_over:
}
static void stddevTransferInfo(SStddevRes* pInput, SStddevRes* pOutput) {
if (IS_NULL_TYPE(pInput->type)) {
return;
}
pOutput->type = pInput->type;
if (IS_SIGNED_NUMERIC_TYPE(pOutput->type)) {
pOutput->quadraticISum += pInput->quadraticISum;