fix:[TS-5150] Fix stddev wrong result with null type.
This commit is contained in:
parent
6272fb831f
commit
c25bc3f2ca
|
@ -1441,6 +1441,9 @@ _stddev_over:
|
||||||
}
|
}
|
||||||
|
|
||||||
static void stddevTransferInfo(SStddevRes* pInput, SStddevRes* pOutput) {
|
static void stddevTransferInfo(SStddevRes* pInput, SStddevRes* pOutput) {
|
||||||
|
if (IS_NULL_TYPE(pInput->type)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
pOutput->type = pInput->type;
|
pOutput->type = pInput->type;
|
||||||
if (IS_SIGNED_NUMERIC_TYPE(pOutput->type)) {
|
if (IS_SIGNED_NUMERIC_TYPE(pOutput->type)) {
|
||||||
pOutput->quadraticISum += pInput->quadraticISum;
|
pOutput->quadraticISum += pInput->quadraticISum;
|
||||||
|
|
Loading…
Reference in New Issue