wjones127 opened a new issue, #37669:
URL: https://github.com/apache/arrow/issues/37669
### Describe the bug, including details regarding any error messages,
version, and platform.
If you try to create a record batch using `RecordBatch.from_arrays()` where
a field in the schema is an extension type, but you pass the storage array, it
will segfault.
Reproduction on PyArrow 13.0.0:
```python
>>> import pyarrow as pa
>>> tensor_type = pa.fixed_shape_tensor(pa.float32(), [2, 3])
>>> inner = pa.array([float(x) for x in range(1, 7)] + [None] * 12,
pa.float32())
>>> storage = pa.FixedSizeListArray.from_arrays(inner, 6)
>>> f32_array = pa.ExtensionArray.from_storage(tensor_type, storage)
>>> pa.RecordBatch.from_arrays(
... [f32_array.storage],
... schema=pa.schema({'tensor': tensor_type})
... )
zsh: segmentation fault python
```
This was discovered as part of https://github.com/apache/arrow-rs/issues/4805
### 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]