David Li created ARROW-13437: -------------------------------- Summary: [C++] Slice of FixedSizeList fails ValidateFull Key: ARROW-13437 URL: https://issues.apache.org/jira/browse/ARROW-13437 Project: Apache Arrow Issue Type: Bug Components: C++ Affects Versions: 4.0.1 Reporter: David Li Assignee: David Li
{code:python} >>> 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) {code} 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. -- This message was sent by Atlassian Jira (v8.3.4#803005)