alamb commented on code in PR #4221:
URL: https://github.com/apache/arrow-datafusion/pull/4221#discussion_r1030743334
##########
datafusion/core/src/datasource/listing/table.rs:
##########
@@ -536,6 +537,23 @@ impl TableProvider for ListingTable {
return Ok(Arc::new(EmptyExec::new(false, projected_schema)));
}
+ // extract types of partition columns
+ let table_partition_cols = self
+ .options
+ .table_partition_cols
+ .iter()
+ .map(|col| {
+ (
+ col.0.to_owned(),
+ self.table_schema
+ .field_with_name(&col.0)
+ .unwrap()
Review Comment:
I think this is going to `panic` if the user specifies a partition column
that is not present.
It would be nice to make it an error -- can you either do so as a follow on
PR or file a ticket?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]