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 2019/09/14 02:01:00 UTC

[jira] [Commented] (ARROW-6349) [Python/numpy] ArrowInvalid: Negative ndarray strides not supported

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

Wes McKinney commented on ARROW-6349:
-------------------------------------

Removed this from 0.15.0 as non-urgent. PR would be welcome to handle copying the tensor data when it has negative strides

> [Python/numpy] ArrowInvalid: Negative ndarray strides not supported
> -------------------------------------------------------------------
>
>                 Key: ARROW-6349
>                 URL: https://issues.apache.org/jira/browse/ARROW-6349
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>         Environment: Ubuntu 16.04, python 3.6.6, numpy 1.14.6, pyarrow 0.11.1
>            Reporter: YUTING ZHANG
>            Priority: Major
>             Fix For: 1.0.0
>
>
> When indexing a np.ndarray with negative stride, arrow cannot serialize it. However, this could be a common use case for reversing along an axis. 
>  
> Code:
> {code:java}
> import pyarrow
> import numpy as np
> a=np.zeros([500,600,3])
> b=a[:,:,::-1]
> pyarrow.serialize(b)
> {code}
>  
> Error:
> {code:java}
> ArrowInvalid Traceback (most recent call last)
> <ipython-input-7-bf252de95dc1> in <module>()
> ----> 1 pyarrow.serialize(b)
> ~/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/pyarrow/serialization.pxi in pyarrow.lib.serialize()
> ~/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
> ArrowInvalid: Negative ndarray strides not supported
> {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)