File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
datafusion/physical-plan/src/operator_statistics Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff 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) => {
You can’t perform that action at this time.
0 commit comments