Angel-212 opened a new issue, #43838:
URL: https://github.com/apache/arrow/issues/43838
### 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:
```python
import pyarrow as pa
fields = [('b', pa.null()),('g', pa.string())]
dtype = pa.list_(pa.struct(fields))
arr = pa.array([[{'b': None, 'g': None}, {'b': None, 'g': 'moo'}]],
type=dtype)
carr = pa.chunked_array(arr)
ext_arr = carr.cast(dtype, safe=True)
print(ext_arr) # prints Invalid array but no exception
print(len(ext_arr)) # Len is 1
print(ext_arr[0]) # Raises ArrowIndexError
```
### Component(s)
Python
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]