Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaxin Gao committed May 21, 2024
1 parent 2d288e1 commit 92a7f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/execution/datafusion/expressions/correlation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ impl Accumulator for CorrelationAccumulator {
(
ScalarValue::Float64(Some(c)),
ScalarValue::Float64(Some(s1)),
ScalarValue::Float64(Some(s2))
ScalarValue::Float64(Some(s2)),
) if s1 != 0.0 && s2 != 0.0 => Ok(ScalarValue::Float64(Some(c / (s1 * s2)))),
_ if self.null_on_divide_by_zero => Ok(ScalarValue::Float64(None)),
_ => {
Expand Down

0 comments on commit 92a7f12

Please sign in to comment.