Skip to content

[Python] Creating a table from a sliced struct array drops the slice #44731

Open
@joseph-isaacs

Description

@joseph-isaacs

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

>>> 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions