-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-10396: [Rust] [Parquet] Publically export SliceableCursor and FileSource #8534
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
Conversation
|
Thanks for opening a pull request! Could you open an issue for this pull request on JIRA? Then could you also rename pull request title in the following format? See also: |
…eSource, Add Seek and Debug
67db2cb to
15d5fff
Compare
| inner: Rc<Vec<u8>>, | ||
| } | ||
|
|
||
| impl fmt::Debug for SliceableCursor { |
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 used this formulation rather than [#derive(Debug)] to avoid getting the buffer contents dumped which can be lots of data to sort through.
andygrove
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
|
🎉 |
Rationale
7155cd5 / #8300 Reworked how the parquet reader traits were implemented to be interms of a
ChunkReadertrait (for the better, in my opinion).That commit includes two helper classes,
SliceableCursorandFileSource, which implementChunkReaderfor aCursorlike thing andFiles, respectively.My project instantiates a
SerializedFileWriterfrom the parquet crate withstructs that wrapFileandCursorand thus I would like to re-use the logic inSliceableCursorandFileSourcewithout having to copy/paste them.Changes
SliceableCursorandFileSourceSeekfor SliceableCursorDebugfor bothSliceableCursorandFileSource