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

Antoine Pitrou reassigned ARROW-2314:
-------------------------------------

    Assignee: Antoine Pitrou

> [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
>
> {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)

Reply via email to