[Python] Creating a table from a sliced struct array drops the slice
Open
Component: Python
Type: bug
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
### Describe the bug, including details regarding any error messages, version, and platform.
Currently on pyarrow 17.0.0 creating a table from a sliced struct array ignores slice bounds
```python
>>> pa.table(pa.array([{'a': 0}, {'a': 1}, {'a': 2}]).slice(0, 1))
pyarrow.Table
a: int64
----
a: [[0,1,2]]
```
I expect
```
a: [[0]]
```
### Component(s)
Python
Contributor guide
Assessment
This issue has not been assessed yet.