-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Specialized Cursor for StringArray and BinaryArray #5964
Conversation
type Values = Self; | ||
|
||
fn values(&self) -> Self::Values { | ||
self.clone() |
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 originally planned to make it so that this deconstructed to the underlying buffers, in order to avoid redundant codegen for strings and binary arrays. Unfortunately this needed apache/arrow-rs#4048
In practice the additional codegen is not likely to matter, we can always revisit if it becomes a problem
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.
Can we at least leave a reference to apache/arrow-rs#4048 as a comment with a hint about how to reduce the codegen once apache/arrow-rs#4048 is releaed?
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 -- thank you @tustvold
I fixed clippy on this branch so it should be good to merge
type Values = Self; | ||
|
||
fn values(&self) -> Self::Values { | ||
self.clone() |
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.
Can we at least leave a reference to apache/arrow-rs#4048 as a comment with a hint about how to reduce the codegen once apache/arrow-rs#4048 is releaed?
* Generify * Specialized cursor for StringArray and BinaryArray * fix clippy * Review feedback --------- Co-authored-by: Andrew Lamb <[email protected]>
Which issue does this PR close?
Part of #5882
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?