lidavidm opened a new issue, #14855:
URL: https://github.com/apache/arrow/issues/14855
The zero-case union is apparently not supported by Arrow C++'s C
Data interface. I get:
```
'arrow_type' failed with Invalid: Invalid or unsupported format string:
'+us:'
```
Reproducer for Python:
```python
import pyarrow as pa
from pyarrow.cffi import ffi
empty_union = pa.sparse_union([])
ptr = ffi.new("struct ArrowSchema*")
empty_union._export_to_c(int(ffi.cast("uintptr_t", ptr)))
pa.DataType._import_from_c(int(ffi.cast("uintptr_t", ptr)))
# Traceback (most recent call last):
# File "<stdin>", line 1, in <module>
# File "pyarrow/types.pxi", line 248, in
pyarrow.lib.DataType._import_from_c
# File "pyarrow/error.pxi", line 144, in
pyarrow.lib.pyarrow_internal_check_status
# File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
# pyarrow.lib.ArrowInvalid: Invalid or unsupported format string: '+us:'
```
_Originally posted by @paleolimbot in
https://github.com/apache/arrow-nanoarrow/pull/81#discussion_r1041055778_
--
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]