Skip to content

Commit

Permalink
Update new clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Jul 8, 2024
1 parent b560204 commit 3617054
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions datafusion/physical-plan/src/aggregates/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2339,12 +2339,15 @@ mod tests {
let b = Arc::new(Float32Array::from(vec![0.; 8192]));
let c = Arc::new(Int32Array::from(vec![1; 8192]));

RecordBatch::try_new(schema.clone(), vec![a, b, c]).unwrap()
RecordBatch::try_new(Arc::clone(&schema), vec![a, b, c]).unwrap()
})
.collect();

let input =
Arc::new(MemoryExec::try_new(&[input_batches], schema.clone(), None)?);
let input = Arc::new(MemoryExec::try_new(
&[input_batches],
Arc::clone(&schema),
None,
)?);

let aggregate_exec = Arc::new(AggregateExec::try_new(
AggregateMode::Partial,
Expand Down
6 changes: 3 additions & 3 deletions datafusion/physical-plan/src/joins/hash_join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3955,12 +3955,12 @@ mod tests {
)];

let (_, batches_null_eq) = join_collect(
left.clone(),
right.clone(),
Arc::clone(&left),
Arc::clone(&right),
on.clone(),
&JoinType::Inner,
true,
task_ctx.clone(),
Arc::clone(&task_ctx),
)
.await?;

Expand Down

0 comments on commit 3617054

Please sign in to comment.