We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1e07fa commit fe84191Copy full SHA for fe84191
vortex-array/src/compute/sum.rs
@@ -106,7 +106,7 @@ impl ComputeFnVTable for Sum {
106
// For floats only use stats if accumulator is zero. otherwise we might have numerical stability issues.
107
match sum_dtype {
108
DType::Primitive(p, _) => {
109
- if p.is_float() {
+ if p.is_float() && accumulator.is_zero() {
110
return Ok(sum.into());
111
}
112
let sum_from_stat = accumulator
0 commit comments