Skip to content

Commit 1bf4e8b

Browse files
committed
style: fix cargo fmt in operator_statistics/mod.rs
1 parent 5cadfd3 commit 1bf4e8b

File tree

1 file changed

+7
-8
lines changed
  • datafusion/physical-plan/src/operator_statistics

1 file changed

+7
-8
lines changed

datafusion/physical-plan/src/operator_statistics/mod.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -907,14 +907,13 @@ impl StatisticsProvider for LimitStatisticsProvider {
907907
return Ok(StatisticsResult::Delegate);
908908
}
909909

910-
let (skip, fetch) =
911-
if let Some(limit) = plan.downcast_ref::<LocalLimitExec>() {
912-
(0usize, Some(limit.fetch()))
913-
} else if let Some(limit) = plan.downcast_ref::<GlobalLimitExec>() {
914-
(limit.skip(), limit.fetch())
915-
} else {
916-
return Ok(StatisticsResult::Delegate);
917-
};
910+
let (skip, fetch) = if let Some(limit) = plan.downcast_ref::<LocalLimitExec>() {
911+
(0usize, Some(limit.fetch()))
912+
} else if let Some(limit) = plan.downcast_ref::<GlobalLimitExec>() {
913+
(limit.skip(), limit.fetch())
914+
} else {
915+
return Ok(StatisticsResult::Delegate);
916+
};
918917

919918
let num_rows = match child_stats[0].base.num_rows {
920919
Precision::Exact(rows) => {

0 commit comments

Comments
 (0)