Skip to content

Commit

Permalink
fix CI MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
2010YOUY01 committed Nov 28, 2024
1 parent 773b9c5 commit 0d6e2c7
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions datafusion/functions-aggregate/src/correlation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,13 +527,12 @@ impl GroupsAccumulator for CorrelationGroupsAccumulator {
}

fn size(&self) -> usize {
size_of::<f64>()
* (self.count.capacity()
+ self.sum_x.capacity()
+ self.sum_y.capacity()
+ self.sum_xy.capacity()
+ self.sum_xx.capacity()
+ self.sum_yy.capacity())
std::mem::size_of_val(&self.count)
+ std::mem::size_of_val(&self.sum_x)
+ std::mem::size_of_val(&self.sum_y)
+ std::mem::size_of_val(&self.sum_xy)
+ std::mem::size_of_val(&self.sum_xx)
+ std::mem::size_of_val(&self.sum_yy)
}
}

Expand Down

0 comments on commit 0d6e2c7

Please sign in to comment.