File tree 1 file changed +4
-5
lines changed
datafusion/datasource-parquet/src 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -296,10 +296,9 @@ impl ParquetSource {
296
296
self
297
297
}
298
298
299
- fn with_metrics ( & self , metrics : ExecutionPlanMetricsSet ) -> Self {
300
- let mut conf = self . clone ( ) ;
301
- conf. metrics = metrics;
302
- conf
299
+ fn with_metrics ( mut self , metrics : ExecutionPlanMetricsSet ) -> Self {
300
+ self . metrics = metrics;
301
+ self
303
302
}
304
303
305
304
/// Set predicate information, also sets pruning_predicate and page_pruning_predicate attributes
@@ -314,7 +313,7 @@ impl ParquetSource {
314
313
let predicate_creation_errors =
315
314
MetricBuilder :: new ( & metrics) . global_counter ( "num_predicate_creation_errors" ) ;
316
315
317
- conf. with_metrics ( metrics) ;
316
+ conf = conf . with_metrics ( metrics) ;
318
317
conf. predicate = Some ( Arc :: clone ( & predicate) ) ;
319
318
320
319
match PruningPredicate :: try_new ( Arc :: clone ( & predicate) , Arc :: clone ( & file_schema) )
You can’t perform that action at this time.
0 commit comments