Skip to content

Commit f4287ce

Browse files
committed
fmt
1 parent 1902602 commit f4287ce

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

datafusion/datasource-parquet/src/source.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -612,10 +612,9 @@ impl FileSource for ParquetSource {
612612
let pushdown_filters = table_pushdown_enabled || config_pushdown_enabled;
613613

614614
let mut source = self.clone();
615-
let filters = PredicateSupports::new_with_supported_check(
616-
filters,
617-
|filter| pushdown_filters && can_expr_be_pushed_down_with_schemas(filter, &file_schema),
618-
);
615+
let filters = PredicateSupports::new_with_supported_check(filters, |filter| {
616+
pushdown_filters && can_expr_be_pushed_down_with_schemas(filter, &file_schema)
617+
});
619618
if filters.is_all_unsupported() {
620619
// No filters can be pushed down, so we can just return the remaining filters
621620
// and avoid replacing the source in the physical plan.

datafusion/physical-plan/src/execution_plan.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,11 +535,11 @@ pub trait ExecutionPlan: Debug + DisplayAs + Send + Sync {
535535
/// and [`ChildPushdownResult::self_filters`] is discarded.
536536
///
537537
/// The default implementation is a no-op that passes the result of pushdown from the children to its parent.
538-
///
538+
///
539539
/// When returning filters via [`FilterPushdownPropagation`] the order of the filters need not match
540540
/// the order they were passed in via `child_pushdown_result`, but preserving the order may be beneficial
541541
/// for debugging and reasoning about the resulting plans so it is recommended to preserve the order.
542-
///
542+
///
543543
/// There are various helper methods to make implementing this method easier, see:
544544
/// - [`FilterPushdownPropagation::unsupported`]: to indicate that the node does not support filter pushdown at all.
545545
/// - [`FilterPushdownPropagation::transparent`]: to indicate that the node supports filter pushdown but does not involve itself in it,

datafusion/physical-plan/src/filter_pushdown.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,16 @@ impl PredicateSupports {
166166

167167
/// Check if all filters are supported.
168168
pub fn is_all_supported(&self) -> bool {
169-
self.0.iter().all(|f| matches!(f, PredicateSupport::Supported(_)))
169+
self.0
170+
.iter()
171+
.all(|f| matches!(f, PredicateSupport::Supported(_)))
170172
}
171173

172174
/// Check if all filters are unsupported.
173175
pub fn is_all_unsupported(&self) -> bool {
174-
self.0.iter().all(|f| matches!(f, PredicateSupport::Unsupported(_)))
176+
self.0
177+
.iter()
178+
.all(|f| matches!(f, PredicateSupport::Unsupported(_)))
175179
}
176180
}
177181

0 commit comments

Comments
 (0)