Skip to content

GH-50012[Python]: Fix list_ storage crashes when values exceed int32 offsets#50016

Open
AnkitAhlawat7742 wants to merge 2 commits into
apache:mainfrom
AnkitAhlawat7742:fix_list_storage_crashes
Open

GH-50012[Python]: Fix list_ storage crashes when values exceed int32 offsets#50016
AnkitAhlawat7742 wants to merge 2 commits into
apache:mainfrom
AnkitAhlawat7742:fix_list_storage_crashes

Conversation

@AnkitAhlawat7742
Copy link
Copy Markdown
Contributor

@AnkitAhlawat7742 AnkitAhlawat7742 commented May 22, 2026

Fix : #50012

Rationale for this change

When data exceeds int32 limits, properly wraps each chunk as ExtensionArray

What changes are included in this PR?

Modified extension type handling to support both Array and ChunkedArray storage types.

Are these changes tested?

Yes , Manually tested the changes

Are there any user-facing changes?

No

This PR contains a "Critical Fix".

This change fixes a crash in list_ storage . when list data exceeds int32 limits, PyArrow automatically creates a ChunkedArray. However, ExtensionArray.from_storage() only accepts Array objects, not ChunkedArray.

@github-actions
Copy link
Copy Markdown

⚠️ GitHub issue #50012 has been automatically assigned in GitHub to PR creator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Python] Table.from_pylist on ExtensionType column with list_ storage crashes when values exceed int32 offsets

1 participant