jo-migo opened a new pull request, #47454:
URL: https://github.com/apache/arrow/pull/47454
### Rationale for this change
Currently, the `maps_as_pydicts` parameter to `MapScalar.as_py` does not
work on nested maps. See below:
```
import pyarrow as pa
t = pa.struct([pa.field("x", pa.map_(pa.string(), pa.map_(pa.string(),
pa.int8())))])
v = {"x": {"a": {"1": 1}}}
s = pa.scalar(v, type=t)
print(s.as_py(maps_as_pydicts="strict"))
# {'x': {'a': [('1', 1)]}}
```
### What changes are included in this PR?
Begin to apply the `maps_as_pydicts` to nested values in map types as well,
update relevant test.
### Are these changes tested?
Yes
### Are there any user-facing changes?
Yes, just a user-facing fix.
--
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]