You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/08/10 17:52:09 UTC
[GitHub] [arrow-rs] Dandandan opened a new issue, #2402: Support casting from utf8 to binary
Dandandan opened a new issue, #2402:
URL: https://github.com/apache/arrow-rs/issues/2402
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
<!--
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
(This section helps Arrow developers understand the context and *why* for this feature, in addition to the *what*)
-->
Casting from utf8 to binary is missing.
**Describe the solution you'd like**
<!--
A clear and concise description of what you want to happen.
-->
Implement cast for utf8(large) to binary(large).
**Describe alternatives you've considered**
<!--
A clear and concise description of any alternative solutions or features you've considered.
-->
n/a
**Additional context**
<!--
Add any other context or screenshots about the feature request here.
-->
n/a
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-rs] Dandandan commented on issue #2402: Support casting from utf8 to binary
Posted by GitBox <gi...@apache.org>.
Dandandan commented on issue #2402:
URL: https://github.com/apache/arrow-rs/issues/2402#issuecomment-1214331652
Thanks for the interest in this issue. I think the description wasn't fully clear.
Currently the `cast` kernel in Arrow doesn't support casting string arrays of to binary, so my suggestion is to implement this. It should be pretty straightforward indeed to build an existing string array to a binary array.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-rs] tustvold closed issue #2402: Support casting from utf8 to binary
Posted by GitBox <gi...@apache.org>.
tustvold closed issue #2402: Support casting from utf8 to binary
URL: https://github.com/apache/arrow-rs/issues/2402
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-rs] HaoYang670 commented on issue #2402: Support casting from utf8 to binary
Posted by GitBox <gi...@apache.org>.
HaoYang670 commented on issue #2402:
URL: https://github.com/apache/arrow-rs/issues/2402#issuecomment-1211515412
I guess this should be straight forward by changing the data type:
```rust
let binary_array_data = utf8_array_data.into_builder()
.datatype(DataType::Binary)
.build_unchecked()
```
This could be a good first issue for developers who want to get familiar with the arrow data type.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-rs] psvri commented on issue #2402: Support casting from utf8 to binary
Posted by GitBox <gi...@apache.org>.
psvri commented on issue #2402:
URL: https://github.com/apache/arrow-rs/issues/2402#issuecomment-1214166737
I want to pick this up, but I was just a little confused . If i am not mistaken we already have a function to convert into binary array https://docs.rs/arrow/20.0.0/arrow/array/fn.as_generic_binary_array.html .
So based on my understanding, If we need to implement, then we need to implement trait from<GenericStringArray> for GenericBinaryArray.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-rs] HaoYang670 commented on issue #2402: Support casting from utf8 to binary
Posted by GitBox <gi...@apache.org>.
HaoYang670 commented on issue #2402:
URL: https://github.com/apache/arrow-rs/issues/2402#issuecomment-1214319967
> then we need to implement trait from< GenericStringArray > for GenericBinaryArray.
I guess this is what @Dandandan want.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org