Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahyurick committed Dec 4, 2023
1 parent 92a5b09 commit 0422dc2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sql/optimizer/dynamic_partition_pruning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,10 @@ fn read_table(
let file_path = tables.get(&table_string).unwrap().filepath.clone();
let paths: fs::ReadDir;
let mut files = vec![];
if fs::metadata(&file_path).map(|metadata| metadata.is_dir()).unwrap_or(false) {
if fs::metadata(&file_path)
.map(|metadata| metadata.is_dir())
.unwrap_or(false)
{
// Obtain filepaths to all relevant Parquet files, e.g., in a directory of Parquet files
paths = fs::read_dir(&file_path).unwrap();
for path in paths {
Expand Down

0 comments on commit 0422dc2

Please sign in to comment.