[
https://issues.apache.org/jira/browse/ARROW-2454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16439211#comment-16439211
]
ASF GitHub Bot commented on ARROW-2454:
---------------------------------------
pitrou opened a new pull request #1897: ARROW-2454: [C++] Allow zero-array
chunked arrays
URL: https://github.com/apache/arrow/pull/1897
This allows code to be more regular and less fragile.
Also fix the chunked array slicing logic.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> [Python] Empty chunked array slice crashes
> ------------------------------------------
>
> Key: ARROW-2454
> URL: https://issues.apache.org/jira/browse/ARROW-2454
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Affects Versions: 0.9.0
> Reporter: Antoine Pitrou
> Assignee: Antoine Pitrou
> Priority: Major
> Labels: pull-request-available
>
> {code:python}
> >>> col = pa.Column.from_array('ints', pa.array([1,2,3]))
> >>> col
> <pyarrow.lib.Column object at 0x7f65398fff00>
> chunk 0: <pyarrow.lib.Int64Array object at 0x7f64fd13ab88>
> [
> 1,
> 2,
> 3
> ]
> >>> col.data
> <pyarrow.lib.ChunkedArray at 0x7f653986ef00>
> >>> col.data[:1]
> <pyarrow.lib.ChunkedArray at 0x7f6539884720>
> >>> col.data[:0]
> Erreur de segmentation (core dumped)
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)