Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: parquet column parsing #127

Merged
merged 3 commits into from
Dec 27, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
avoid use of unwrap()
  • Loading branch information
sslivkoff committed Dec 27, 2023
commit 9501a7c66e053cd5425deaf28d8ae0f59c88ac33
11 changes: 6 additions & 5 deletions crates/cli/src/parse/parse_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ 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| {
// strip off column name if present
let reference = parse_file_column_reference(tx, default_column).unwrap();
std::path::Path::new(&reference.path).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
Expand Down
Loading