mzabaluev commented on PR #9462:
URL: https://github.com/apache/arrow-rs/pull/9462#issuecomment-4011424975

   > ```rust
   > let header_info = HeaderInfo::load_async(&mut input, file_size, 
None).await?;
   > 
   > // derive reader_schema from writer_schema
   > let reader_schema = make_reader_from_writer(header_info.writer_schema()?)?;
   > 
   > let reader = ReaderBuilder::new(input, file_size, batch_size)
   >     .with_reader_schema(reader_schema)
   >     .with_header_info(header_info) // Optional to prevent re-reading the 
`Header`
   >     .with_projection(vec![0, 2])
   >     .try_build()
   >     .await?;
   > ```
   
   Wouldn't this have the same problem of allowing an outside source of truth 
on the reader schema?
   


-- 
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]

Reply via email to