Skip to content

[Python] Cast one chunk at a time in ChunkedArray ArrowStream export with requested type #41064

Description

@jorisvandenbossche

Follow-up on #40818, see #40818 (comment) for context.

ChunkedArray.__arrow_c_stream__ currently casts the full ChunkedArray up front when providing a requested_type. Instead, we can also catst one chunk at a time when the stream is being read, to reduce memory consumption.

This is similar to what was implemented for RecordBatchReader in #40070 (CastingRecordBatchReader)

Activity

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

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