NickCrews opened a new issue, #40053:
URL: https://github.com/apache/arrow/issues/40053
### Describe the bug, including details regarding any error messages,
version, and platform.
If I give a column of structs, then pyarrow seems to sort the fields by
name. I would expect the field order to be preserved.
```python
import pandas as pd
import pyarrow as pa
print(pa.__version__)
# 15.0.0
s = pd.Series([{"b": 2, "a": 1}, {"b": 4, "a": 3}])
a = pa.array(s)
print(a.type)
# struct<a: int64, b: int64>
```
This was discovered in https://github.com/ibis-project/ibis/issues/8166
### 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]