You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Uwe L. Korn (JIRA)" <ji...@apache.org> on 2018/04/21 14:37:00 UTC

[jira] [Resolved] (ARROW-2314) [Python] Union array slicing is defective

     [ https://issues.apache.org/jira/browse/ARROW-2314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uwe L. Korn resolved ARROW-2314.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 0.10.0

Issue resolved by pull request 1757
[https://github.com/apache/arrow/pull/1757]

> [Python] Union array slicing is defective
> -----------------------------------------
>
>                 Key: ARROW-2314
>                 URL: https://issues.apache.org/jira/browse/ARROW-2314
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, Python
>    Affects Versions: 0.8.0
>            Reporter: Antoine Pitrou
>            Assignee: Antoine Pitrou
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.10.0
>
>
> {code:python}
> >>> a = pa.UnionArray.from_sparse(pa.array([0,1,1], type=pa.int8()), [pa.array(["a", "b", "c"]), pa.array([2,3,4])])
> >>> a
> <pyarrow.lib.UnionArray object at 0x7fe9381304a8>
> [
>   'a',
>   3,
>   4
> ]
> >>> a[1:]
> <pyarrow.lib.UnionArray object at 0x7fe939409598>
> [
>   2,
>   3
> ]
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)