avantgardnerio commented on code in PR #4112:
URL: https://github.com/apache/arrow-datafusion/pull/4112#discussion_r1014662121
##########
datafusion/core/src/catalog/listing_schema.rs:
##########
@@ -100,13 +102,20 @@ impl ListingSchemaProvider {
.ok_or_else(|| {
DataFusionError::Internal("Cannot parse file
name!".to_string())
})?;
- let table_name = table.to_str().ok_or_else(|| {
+ let table_name = file_name.split('.').collect_vec()[0];
Review Comment:
https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.file_prefix
For some reason the github UI didn't let me respond in thread until now :/
--
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]