Skip to content

Commit

Permalink
fix clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Aug 12, 2024
1 parent f087efe commit 076d88e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datafusion/physical-plan/src/aggregates/row_hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ impl GroupedHashAggregateStream {
let batches = outputs
.into_iter()
.map(|o| {
RecordBatch::try_new(schema.clone(), o)
RecordBatch::try_new(Arc::clone(&schema), o)
.map_err(|e| DataFusionError::ArrowError(e, None))
})
.collect::<Result<VecDeque<_>>>()?;
Expand Down Expand Up @@ -1189,7 +1189,7 @@ impl MergeMode {

fn merge_groups_and_partial_states(
&self,
outputs: &mut Vec<Vec<ArrayRef>>,
outputs: &mut [Vec<ArrayRef>],
mut partial_states: Vec<Vec<ArrayRef>>,
) {
match &self {
Expand All @@ -1205,7 +1205,7 @@ impl MergeMode {

fn merge_groups_and_final_states(
&self,
outputs: &mut Vec<Vec<ArrayRef>>,
outputs: &mut [Vec<ArrayRef>],
mut final_states: Vec<ArrayRef>,
) {
match &self {
Expand Down

0 comments on commit 076d88e

Please sign in to comment.