You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2018/12/21 16:44:00 UTC

[jira] [Created] (ARROW-4101) [C++] Binary identity cast not implemented

Wes McKinney created ARROW-4101:
-----------------------------------

             Summary: [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
             Fix For: 0.12.0


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
(v7.6.3#76005)