-
Notifications
You must be signed in to change notification settings - Fork 7
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
Impl RleV1Encoder for integer #37
base: main
Are you sure you want to change the base?
Impl RleV1Encoder for integer #37
Conversation
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.
Thanks for raising this, have left some comments 🙂
Looking better now. Some CI failures to address (can ignore the |
e7b8625
to
f3f724e
Compare
@Jefffrey I use a fixed-size array on the stack instead of a heap-allocated Vec now. Perhaps we can use the same approach in the implementation of rle_v2 to avoid memory allocation. https://github.com/datafusion-contrib/orc-rust/blob/main/src/encoding/integer/rle_v2/mod.rs#L217 |
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 like where this is headed 👍
I think it is feasible to use |
close #23
Algorithm adapted from: https://github.com/apache/orc/blob/main/java/core/src/java/org/apache/orc/impl/RunLengthIntegerWriter.java