elbaro opened a new issue, #5112:
URL: https://github.com/apache/arrow-datafusion/issues/5112
**Is your feature request related to a problem or challenge? Please describe
what you are trying to do.**
A clear and concise description of what the problem is. Ex. I'm always
frustrated when [...]
(This section helps Arrow developers understand the context and *why* for
this feature, in addition to the *what*)
```rs
let ctx = SessionContext::new();
let s3 = object_store::aws::AmazonS3Builder::from_env()
.with_bucket_name("my-bucket")
.with_region("us-east-1")
.build()?;
ctx.runtime_env()
.register_object_store("s3", "my-bucket", Arc::new(s3));
let uris = vec![
"s3://a/b/c/1.parquet",
"s3://a/b/c/2.parquet",
];
let uris = uris.into_iter().map(|uri|
ListingTableUrl::parse(uri).unwrap()).collect::<Vec<_>>();
let table =
Arc::new(ListingTable::try_new(ListingTableConfig::new_with_multi_paths(uris))?);
let df = ctx.read_table(table)?;
```
gives
```
error: Internal error: No schema provided.. This was likely caused by a bug
in DataFusion's code and we would welcome that you file an bug report in our
issue tracker
```
I had to manually call `infer()`:
```rs
let mut config = ListingTableConfig::new_with_multi_paths(uris);
config = config.infer(&ctx.state()).await?;
```
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
DataFusion should call `infer()` if config is not set.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features
you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
Parquet files have schema in them, and it it common to omit schema when
reading or writing parquet files.
--
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]