Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaxin Gao committed Apr 20, 2024
1 parent bfe6752 commit 4e2f6fb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/src/execution/datafusion/expressions/variance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,10 @@ impl Accumulator for VarianceAccumulator {
1.0 => {
if let StatsType::Population = self.stats_type {
Some(0.0)
} else if self.null_on_divide_by_zero {
None
} else {
if self.null_on_divide_by_zero {
None
} else {
Some(f64::NAN)
}
Some(f64::NAN)
}
}
_ => Some(self.m2 / count),
Expand Down

0 comments on commit 4e2f6fb

Please sign in to comment.