We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63c81fe commit ba73c81Copy full SHA for ba73c81
datafusion/core/src/datasource/listing/table.rs
@@ -543,16 +543,15 @@ impl TableProvider for ListingTable {
543
.table_partition_cols
544
.iter()
545
.map(|col| {
546
- (
+ Ok((
547
col.0.to_owned(),
548
self.table_schema
549
- .field_with_name(&col.0)
550
- .unwrap()
+ .field_with_name(&col.0)?
551
.data_type()
552
.clone(),
553
- )
+ ))
554
})
555
- .collect();
+ .collect::<Result<Vec<_>>>()?;
556
557
// create the execution plan
558
self.options
0 commit comments