alamb commented on issue #7973:
URL: https://github.com/apache/arrow-rs/issues/7973#issuecomment-3492484813

   > Casting of types during read (for example String into StringView) probably 
should be an opt-in behaviour, right? If we anyways are fine with reading data 
with a type different from how it may be was stored with, we also could upcast 
to LargeString directly, couldn't we?
   
   
   Yes -- you can already opt in by creating a reader using 
   
   
https://docs.rs/parquet/latest/parquet/arrow/arrow_reader/struct.ArrowReaderBuilder.html#method.new_with_options
   
   
   and passing in a ReaderOptions setup with 
https://docs.rs/parquet/latest/parquet/arrow/arrow_reader/struct.ArrowReaderOptions.html#method.with_schema
   
   (if you explicitly specify to use `DataType::Utf8View` that is what will 
come out of the reader)
   
   I had to poke around in the docs to find this -- I think it would be nice to 
add an example in the docs to make it easier to find. I'll try and make a PR


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