Skip to content

Commit d3d312c

Browse files
committed
fixed
Signed-off-by: Nicholas Gates <nick@nickgates.com>
1 parent b7b49ab commit d3d312c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • vortex-array/src/aggregate_fn/fns/sum

vortex-array/src/aggregate_fn/fns/sum/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,11 @@ impl AggregateFnVTable for Sum {
203203

204204
#[inline]
205205
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-
})
206+
match partial.current.as_ref() {
207+
None => true,
208+
Some(SumState::Float(v)) => v.is_nan(),
209+
Some(_) => false,
210+
}
211211
}
212212

213213
fn accumulate(

0 commit comments

Comments
 (0)