Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Nov 20, 2024
1 parent 460a4a6 commit f8d4d97
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions native/core/src/execution/datafusion/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ impl PhysicalPlanner {
let partition_fields: Vec<_> = partition_schema_arrow
.flattened_fields()
.into_iter()
.map(|field| field.clone())
.cloned()
.collect();

// Convert the Spark expressions to Physical expressions
Expand Down Expand Up @@ -1035,8 +1035,10 @@ impl PhysicalPlanner {
.partition_values
.iter()
.map(|partition_value| {
let literal =
self.create_expr(partition_value, empty_schema.clone())?;
let literal = self.create_expr(
partition_value,
Arc::<Schema>::clone(&empty_schema),
)?;
literal
.as_any()
.downcast_ref::<DataFusionLiteral>()
Expand Down

0 comments on commit f8d4d97

Please sign in to comment.