-
Notifications
You must be signed in to change notification settings - Fork 824
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
Add support for Utf8View in arrow_string::length #6345
Conversation
v.into(), | ||
list.nulls().cloned(), | ||
))) | ||
} | ||
DataType::Binary => { | ||
let list = array.as_binary::<i32>(); | ||
Ok(length_impl::<Int32Type>(list.offsets(), list.nulls())) |
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.
We should also consider adding support for BinaryView
as well, maybe in a follow-up PR
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 can do that, sure.
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.
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 @Omega359 and @XiangpengHao 🚀
"on", | ||
"o", | ||
"", | ||
"this is a longer string to test string array with", |
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.
❤️
Which issue does this PR close?
Closes #6305
Rationale for this change
Add support for StringViewArray in length function
What changes are included in this PR?
Code and tests.
Are there any user-facing changes?
No