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

[jira] [Commented] (ARROW-639) [Python] Crash in out-of-bounds __repr__ of array

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

Miki Tebeka commented on ARROW-639:
-----------------------------------

Seems like there's so issue with offsets
{noformat}
In [8]: print(s[0])
'c'
{noformat}

I'd expect 'b' unless I'm missing something.

> [Python] Crash in out-of-bounds __repr__ of array
> -------------------------------------------------
>
>                 Key: ARROW-639
>                 URL: https://issues.apache.org/jira/browse/ARROW-639
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: 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)