Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.0.1
Description
>>> arr = pa.array([["a", "b"], None, ["c", "d"]], pa.list_(pa.string(), 2)) >>> arr.validate(full=True) >>> arr.slice(0, 1).validate(full=True) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pyarrow/array.pxi", line 1219, in pyarrow.lib.Array.validate File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Values length (6) is not equal to the length (1) multiplied by the value size (2)
Came up while looking at ARROW-13222. I'm not sure of the check here is necessarily valid, given slicing; it should perhaps only check that values length >= length * value_size, not that they're exactly equal.
Attachments
Issue Links
- links to