Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ctsk committed Feb 10, 2025
1 parent 523c9d2 commit a7324c7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions datafusion/physical-plan/src/aggregates/order/partial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ impl State {
match self {
State::Taken => 0,
State::Start => 0,
State::InProgress { sort_key, .. } => sort_key.iter().map(|scalar_value| scalar_value.size()).sum() ,
State::InProgress { sort_key, .. } => sort_key
.iter()
.map(|scalar_value| scalar_value.size())
.sum(),
State::Complete => 0,
}
}
Expand Down Expand Up @@ -268,9 +271,7 @@ impl GroupOrderingPartial {

/// Return the size of memory allocated by this structure
pub(crate) fn size(&self) -> usize {
size_of::<Self>()
+ self.order_indices.allocated_size()
+ self.state.size()
size_of::<Self>() + self.order_indices.allocated_size() + self.state.size()
}
}

Expand Down

0 comments on commit a7324c7

Please sign in to comment.