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 can not load parquet table form spark in datafusion-cli. #1665

Merged
merged 3 commits into from
Jan 31, 2022
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
Next Next commit
add Invalid file in log.
Ted-Jiang committed Jan 26, 2022
commit 8a9cb7741e50dd5c9a74471f091bddc046d0b169
9 changes: 6 additions & 3 deletions datafusion/src/physical_plan/file_format/parquet.rs
Original file line number Diff line number Diff line change
@@ -221,7 +221,7 @@ impl ExecutionPlan for ParquetExec {
object_store.as_ref(),
file_schema_ref,
partition_index,
partition,
&partition,
metrics,
&projection,
&pruning_predicate,
@@ -230,7 +230,10 @@ impl ExecutionPlan for ParquetExec {
limit,
partition_col_proj,
) {
println!("Parquet reader thread terminated due to error: {:?}", e);
println!(
"Parquet reader thread terminated due to error: {:?} for files: {:?}",
e, partition
);
}
});

@@ -445,7 +448,7 @@ fn read_partition(
object_store: &dyn ObjectStore,
file_schema: SchemaRef,
partition_index: usize,
partition: Vec<PartitionedFile>,
partition: &[PartitionedFile],
metrics: ExecutionPlanMetricsSet,
projection: &[usize],
pruning_predicate: &Option<PruningPredicate>,