You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2017/03/18 20:49:42 UTC

[jira] [Assigned] (ARROW-639) [C++] Invalid offset in slices

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

Wes McKinney reassigned ARROW-639:
----------------------------------

    Assignee: Miki Tebeka

> [C++] Invalid offset in slices
> ------------------------------
>
>                 Key: ARROW-639
>                 URL: https://issues.apache.org/jira/browse/ARROW-639
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: Miki Tebeka
>            Assignee: Miki Tebeka
>
> The following code ({{slice.py}})
> {code}
> import pyarrow as pa
> arr = pa.from_pylist(['a', 'b', 'c'])
> s = arr.slice(1, 10)
> print('ok')
> print(len(s))
> print('ok')
> print(s)
> print('crash')
> {code}
> produces
> {noformat}
> $ python slice.py
> ok
> 2
> ok
> terminate called after throwing an instance of 'std::length_error'
>   what():  basic_string::_M_create
> [1]    28401 abort (core dumped)  python slice.py
> $
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)