liukun4515 commented on issue #5657:
URL: https://github.com/apache/arrow-rs/issues/5657#issuecomment-2065682971
> Something like
>
> ```rust
> let file = File::open("data.parquet").unwrap();
>
> let reader = ParquetRecordBatchReaderBuilder::try_new(file)?
> // specify the arrow schema to read from this parquet file
> // will error if the types in the parquet file can not be converted
> // into the specific types.
> // Will ignore any embedded metadata about types when written
> .schema(schema)
>
> println!("Converted arrow schema is: {}", builder.schema());
> ```
Do we need to add some checker in the function of the `schema` which is used
to compare the schema with schema inferred from the parquet file?
--
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]