alamb commented on issue #5657:
URL: https://github.com/apache/arrow-rs/issues/5657#issuecomment-2061863599
Here is one potential API
```rust
let file = File::open("data.parquet").unwrap();
let reader = ParquetRecordBatchReaderBuilder::try_new(file)?
// specify column "time" should be UTC
// will error if this type can not be read from parquet
.with_column_type("time", DateTime::Timestamp(Nanoseconds, Some("UTC"))
println!("Converted arrow schema is: {}", builder.schema());
```
I am not quite sure how to handle identifying nested types with a single
column name
Like if the parquet file has
```json
{
"my_object": {
"time": "12-01-02"
}
}
```
maybe we would refer to the `time` field like `"my_object.time"`?
--
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]