tustvold opened a new issue #1163:
URL: https://github.com/apache/arrow-rs/issues/1163


   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   
   Currently and `ParquetReader` `ParquetWriter` traits pass around immutable 
references. They then make use of a combination of `TryClone` and `RefCell` in 
order to placate the borrow checker.
   
   Aside from being somewhat surprising, it prevents creating a `ParquetWriter` 
from an `&mut File`.
   
   **Describe the solution you'd like**
   
   I would like to be able to create `ParquetReader` with anything implementing 
`std::io::Seek` and `std::io::Read`. Similarly I would like to be able to 
create `ParquetWriter` with anything implementing `std::io::Seek` and 
`std::io::Write`. These are standard traits within the Rust ecosystem and 
supporting them will simplify interoperation with it.
   
   The blanket implementations on these traits will for free allow using 
`ParquetReader` and `ParquetWriter` with mutable references, which as an added 
bonus avoids the somewhat confusing property where cloned file descriptors 
share the same seek position.
   
   **Describe alternatives you've considered**
   
   Preserve the current behaviour
   


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