Skip to content

Commit

Permalink
added anyhow context to parquet export
Browse files Browse the repository at this point in the history
  • Loading branch information
«ratal» committed Mar 21, 2024
1 parent c29b8c9 commit 43fcc62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ fn main() -> Result<(), Error> {

let parquet_compression = matches.get_one::<String>("parquet_compression");
if let Some(file_name) = parquet_file_name {
mdf_file.export_to_parquet(file_name, parquet_compression.map(|x| &**x))?;
mdf_file
.export_to_parquet(file_name, parquet_compression.map(|x| &**x))
.context("failed to export into parquet file")?;
info!(
"Wrote parquet file {} with compression {:?}",
file_name, parquet_compression
Expand Down

0 comments on commit 43fcc62

Please sign in to comment.