Skip to content

Commit bd59b63

Browse files
committed
cleanup
1 parent c546f77 commit bd59b63

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

datafusion/datasource-parquet/src/source.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ impl FileSource for ParquetSource {
661661
PredicateSupport::Supported(expr) => Some(Arc::clone(expr)),
662662
PredicateSupport::Unsupported(_) => None,
663663
})
664-
.collect::<Vec<_>>();
664+
.collect_vec();
665665
let predicate = match source.predicate {
666666
Some(predicate) => {
667667
conjunction(std::iter::once(predicate).chain(allowed_filters))
@@ -677,7 +677,7 @@ impl FileSource for ParquetSource {
677677
filters
678678
.into_iter()
679679
.map(|f| PredicateSupport::Unsupported(f.into_inner()))
680-
.collect::<Vec<_>>(),
680+
.collect_vec(),
681681
)
682682
.with_updated_node(source));
683683
}

datafusion/physical-plan/src/filter.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ use std::pin::Pin;
2020
use std::sync::Arc;
2121
use std::task::{ready, Context, Poll};
2222

23+
use itertools::Itertools;
24+
2325
use super::{
2426
ColumnStatistics, DisplayAs, ExecutionPlanProperties, PlanProperties,
2527
RecordBatchStream, SendableRecordBatchStream, Statistics,
@@ -491,7 +493,7 @@ impl ExecutionPlan for FilterExec {
491493
PredicateSupport::Unsupported(expr) => Some(Arc::clone(expr)),
492494
PredicateSupport::Supported(_) => None,
493495
})
494-
.collect::<Vec<_>>();
496+
.collect_vec();
495497
assert_eq!(
496498
child_pushdown_result.self_filters.len(),
497499
1,
@@ -503,7 +505,7 @@ impl ExecutionPlan for FilterExec {
503505
PredicateSupport::Unsupported(expr) => Some(Arc::clone(expr)),
504506
PredicateSupport::Supported(_) => None,
505507
})
506-
.collect::<Vec<_>>();
508+
.collect_vec();
507509
unhandled_filters.extend(unsupported_self_filters);
508510

509511
// If we have unhandled filters, we need to create a new FilterExec

0 commit comments

Comments
 (0)