Jefffrey commented on issue #7667: URL: https://github.com/apache/arrow-rs/issues/7667#issuecomment-5112377413
I think is this intended, since some of the docs state how the file handle is shared meaning mutations affect each copy: https://github.com/apache/arrow-rs/blob/12091af35e5070dae33e86fbe988d9319521cd16/parquet/src/file/reader.rs#L68-L75 - See how [`File::try_clone`](https://doc.rust-lang.org/std/fs/struct.File.html#method.try_clone) from the stdlib allows this via a shared reference interface I suppose we can try uplift our documentation to make this more obvious. One thing I note is that some of our doctests use this `try_clone()` way to clone files, so not sure why they don't fail in tests 🤔 https://github.com/apache/arrow-rs/blob/12091af35e5070dae33e86fbe988d9319521cd16/parquet/src/arrow/async_reader/mod.rs#L421-L441 -- 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]
