-
Notifications
You must be signed in to change notification settings - Fork 796
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
Support casting StringView
/BinaryView
--> StringArray
/BinaryArray
.
#5704
Conversation
I have written some of my thoughts in #5508. |
1f2d150
to
a8f3bfc
Compare
a8f3bfc
to
bce9b4d
Compare
Archery test is failing due to #5719 |
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.
Looks great to me -- thank you @RinChanNOWWW 🙏
let mut byte_array_builder = GenericByteBuilder::<TO>::with_capacity(len, bytes); | ||
|
||
for val in view_array.iter() { | ||
byte_array_builder.append_option(val); |
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 suspect we could potentially make this code faster by special casing when there are no nulls
Which issue does this PR close?
Part of #5508.
Rationale for this change
What changes are included in this PR?
Support casting from byte view array (BinaryViewArray, StringVIewArray) to byte array (BinaryArray, StringArray).
Are there any user-facing changes?
No.