Open Angel-212 opened 2 months ago
@Angel-212 thanks for the report!
The issue already happens with the plain (non-chunked) array as well. And the repr also shows it being invalid (which is then the reason that a getitem operation errors):
In [24]: arr.cast(dtype)
Out[24]:
<pyarrow.lib.ListArray object at 0x7f0536bbd480>
<Invalid array: List child array invalid: Invalid: Struct child array #0 has length smaller than expected for struct array (1 < 2)>
Describe the bug, including details regarding any error messages, version, and platform.
OS: MacOS Sonoma 14.6.1 Python: 3.10.14 pyarrow: 17.0.0
Snippet to reproduce:
Component(s)
Python