[ 
https://issues.apache.org/jira/browse/ARROW-4101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17661124#comment-17661124
 ] 

Rok Mihevc commented on ARROW-4101:
-----------------------------------

This issue has been migrated to [issue 
#20694|https://github.com/apache/arrow/issues/20694] on GitHub. Please see the 
[migration documentation|https://github.com/apache/arrow/issues/14542] for 
further details.

> [C++] Binary identity cast not implemented
> ------------------------------------------
>
>                 Key: ARROW-4101
>                 URL: https://issues.apache.org/jira/browse/ARROW-4101
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>            Reporter: Wes McKinney
>            Assignee: Francois Saint-Jacques
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.12.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Surfaced by test case in https://github.com/apache/arrow/pull/3239
> ```
> In [1]: import pyarrow as pa
> In [2]: pa.array([b'foo'])
> Out[2]: 
> <pyarrow.lib.BinaryArray object at 0x7f6ed510b9a8>
> [
>   666F6F
> ]
> In [3]: arr = pa.array([b'foo'])
> In [4]: arr.cast(pa.binary())
> ---------------------------------------------------------------------------
> ArrowNotImplementedError                  Traceback (most recent call last)
> <ipython-input-4-d6c6f1159d55> in <module>()
> ----> 1 arr.cast(pa.binary())
> ~/miniconda/envs/arrow-dev/lib/python3.6/site-packages/pyarrow/array.pxi in 
> pyarrow.lib.Array.cast()
> ~/miniconda/envs/arrow-dev/lib/python3.6/site-packages/pyarrow/error.pxi in 
> pyarrow.lib.check_status()
> ArrowNotImplementedError: No cast implemented from binary to binary
> ```



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to