-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-10390: [Rust][Parquet] Ensure it is possible to create custom parquet writers #8528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARROW-10390: [Rust][Parquet] Ensure it is possible to create custom parquet writers #8528
Conversation
nevi-me
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just 1 line change
rust/parquet/src/file/writer.rs
Outdated
| // ---------------------------------------------------------------------- | ||
| // Serialized impl for file & row group writers | ||
|
|
||
| pub use crate::util::io::TryClone; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer if the import is still close to line 41. Here it's hidden, especially as a pub use
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved!
jorgecarleitao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. @alamb cargo fmt pls?
| @@ -0,0 +1,83 @@ | |||
| use std::fs::File; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: license header
rust/parquet/src/file/writer.rs
Outdated
| use crate::util::io::{FileSink, Position, TryClone}; | ||
| use crate::util::io::{FileSink, Position}; | ||
|
|
||
| // Exposed publically so client code can implement ParquetWriter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: perhaps make ParquetWriter a linked text.
|
As of #8300, it no longer appears possible to implement a
ParquetWriterto provide a custom writer because it is not possible to implement the trait asTryCloneis not publicly exported.This PR publically exports that trait and adds an end to end test demonstrating it is possible to create a custom writer
Here is what happens if you try and use
TryCloneon master