Skip to content

Commit ac5d16e

Browse files
xudong963alamb
andauthored
Update datafusion/core/src/datasource/listing/table.rs
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
1 parent 1088f9f commit ac5d16e

File tree

1 file changed

+4
-7
lines changed
  • datafusion/core/src/datasource/listing

1 file changed

+4
-7
lines changed

datafusion/core/src/datasource/listing/table.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,13 +1251,10 @@ async fn get_files_with_limit(
12511251
}
12521252
}
12531253
}
1254-
let mut inexact_stats = false;
1255-
if all_files.next().await.is_some() {
1256-
// If we still have files in the stream, it means that the limit kicked
1257-
// in, and the statistic could have been different had we processed the
1258-
// files in a different order.
1259-
inexact_stats = true;
1260-
}
1254+
// If we still have files in the stream, it means that the limit kicked
1255+
// in, and the statistic could have been different had we processed the
1256+
// files in a different order.
1257+
let inexact_stats = all_files.next().await.is_some();
12611258
Ok((file_group, inexact_stats))
12621259
}
12631260

0 commit comments

Comments
 (0)