You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Krisztian Szucs (Jira)" <ji...@apache.org> on 2020/06/17 16:07:00 UTC
[jira] [Comment Edited] (ARROW-8025) [C++] Implement cast to Binary
and FixedSizeBinary
[ https://issues.apache.org/jira/browse/ARROW-8025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17138598#comment-17138598 ]
Krisztian Szucs edited comment on ARROW-8025 at 6/17/20, 4:06 PM:
------------------------------------------------------------------
[~wesm] Cast to and from FixedSizedBinary will involve some more work and I have a couple of questions:
String/Binary to FixedSizedBinary:
- shall we append values one by one and truncate if necessary
- or add as zero copy cast and check that the value offsets indicate same width values
- or both?
FixedSizedBinary to String/Binary is more straightforward to zero copy cast and generate the offset values, although I'm not sure that this cast makes much sense.
was (Author: kszucs):
Cast to and from FixedSizedBinary will involve some more work and I have a couple of questions:
String/Binary to FixedSizedBinary:
- shall we append values one by one and truncate if necessary
- or add as zero copy cast and check that the value offsets indicate same width values
- or both?
FixedSizedBinary to String/Binary is more straightforward to zero copy cast and generate the offset values, although I'm not sure that this cast makes much sense.
> [C++] Implement cast to Binary and FixedSizeBinary
> --------------------------------------------------
>
> Key: ARROW-8025
> URL: https://issues.apache.org/jira/browse/ARROW-8025
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++
> Reporter: Neal Richardson
> Assignee: Krisztian Szucs
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.0.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> It appears you can cast from Binary to String but not the other way.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)