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 b7b49ab commit d3d312cCopy full SHA for d3d312c
1 file changed
vortex-array/src/aggregate_fn/fns/sum/mod.rs
@@ -203,11 +203,11 @@ impl AggregateFnVTable for Sum {
203
204
#[inline]
205
fn is_saturated(&self, partial: &Self::Partial) -> bool {
206
- partial.current.is_none()
207
- || partial.current.as_ref().is_some_and(|s| match s {
208
- SumState::Float(v) => v.is_nan(),
209
- _ => false,
210
- })
+ match partial.current.as_ref() {
+ None => true,
+ Some(SumState::Float(v)) => v.is_nan(),
+ Some(_) => false,
+ }
211
}
212
213
fn accumulate(
0 commit comments