You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "YUTING ZHANG (Jira)" <ji...@apache.org> on 2019/08/24 21:52:00 UTC
[jira] [Created] (ARROW-6349) ArrowInvalid: Negative ndarray
strides not supported
YUTING ZHANG created ARROW-6349:
-----------------------------------
Summary: ArrowInvalid: Negative ndarray strides not supported
Key: ARROW-6349
URL: https://issues.apache.org/jira/browse/ARROW-6349
Project: Apache Arrow
Issue Type: Bug
Environment: Ubuntu 16.04, python 3.6.6, numpy 1.14.6, pyarrow 0.11.1
Reporter: YUTING ZHANG
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)