Commits


wenjun.swj authored and Wes McKinney committed 7916fb49a0e
ARROW-8122: [Python] Empty numpy arrays with shape cannot be deserialized When checking tensor validity with ``CheckTensorStridesValidity`` in ``tensor.cc``, and one of the dimensions is zero, ``last_offset`` and ``data->size()`` are both 0, and ``last_offset >= data->size()`` will be true, which causes a false Status::Invalid, and such empty numpy arrays fails to deserialize. Closes #6624 from wjsi/bugfix/empty_tensor Authored-by: wenjun.swj <wenjun.swj@alibaba-inc.com> Signed-off-by: Wes McKinney <wesm+git@apache.org>