nishkakar opened a new issue, #43857:
URL: https://github.com/apache/arrow/issues/43857
### Describe the bug, including details regarding any error messages,
version, and platform.
Here's the repro on Version 16 with Python 3.10 (also repros on Version 11
FWIW). It seems according to the docs that this behavior should be supported,
but maybe I'm missing something here. Appreciate the help!
```
import pyarrow as pa
lst = [
{"payload": {"executed": {'finger': 'middle', 'type': 'tap'}}},
{"payload": {"executed": "left"}}
]
# Also fails with pa.sparse_union
executed_union = pa.dense_union([
pa.field("struct", pa.struct([("finger", pa.string()), ("type",
pa.string())])),
pa.field("string", pa.string())
])
schema = pa.schema([
("payload", executed_union)
])
map_type = pa.map_(pa.string(), executed_union)
# BOTH OF THESE FAIL WITH: "ArrowNotImplementedError:dense_union"
pa.Table.from_pylist(lst, schema=schema)
pa.array(lst, map_type)
```
### 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]