Skip to content

Commit

Permalink
don't panic
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Sep 25, 2019
1 parent c751753 commit cd11b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/datafusion/src/datasource/parquet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl ParquetTable {
let mut filenames: Vec<String> = vec![];
common::build_file_list(path, &mut filenames, ".parquet")?;
if filenames.is_empty() {
panic!()
Err(ExecutionError::General("No files found".to_string()))
} else {
let parquet_file = ParquetFile::open(&filenames[0], None, 0)?;
let schema = parquet_file.projection_schema.clone();
Expand Down

0 comments on commit cd11b97

Please sign in to comment.