Skip to content

Commit

Permalink
remove redundant usage of clone (apache#12392)
Browse files Browse the repository at this point in the history
  • Loading branch information
waruto210 authored Sep 9, 2024
1 parent 6e790cf commit f56d6d0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ impl FileOpener for ParquetOpener {
)?;

let batch_size = self.batch_size;
let projection = self.projection.clone();
let projected_schema = SchemaRef::from(self.table_schema.project(&projection)?);

let projected_schema =
SchemaRef::from(self.table_schema.project(&self.projection)?);
let schema_adapter = self.schema_adapter_factory.create(projected_schema);
let predicate = self.predicate.clone();
let pruning_predicate = self.pruning_predicate.clone();
Expand Down

0 comments on commit f56d6d0

Please sign in to comment.