Skip to content

Commit

Permalink
fix: parquet column parsing (#127)
Browse files Browse the repository at this point in the history
* fix: parquet column parsing

* avoid use of unwrap()

---------

Co-authored-by: sslivkoff <[email protected]>
  • Loading branch information
PhilippLgh and sslivkoff authored Dec 27, 2023
1 parent ae8d152 commit 17d25d7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions crates/cli/src/parse/parse_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,13 @@ pub(crate) fn parse_binary_arg(
let mut parsed = HashMap::new();

// separate into files vs explicit
let (files, hex_strings): (Vec<&String>, Vec<&String>) =
inputs.iter().partition(|tx| std::path::Path::new(tx).exists());
let (files, hex_strings): (Vec<&String>, Vec<&String>) = inputs.iter().partition(|tx| {
// strip off column name if present
match parse_file_column_reference(tx, default_column) {
Ok(reference) => std::path::Path::new(&reference.path).exists(),
_ => false,
}
});

// files columns
for path in files {
Expand Down

0 comments on commit 17d25d7

Please sign in to comment.