Skip to content

ARROW-12686: [C++][Python][FlightRPC] Convert Flight reader into a regular reader#10267

Closed
lidavidm wants to merge 1 commit into
apache:masterfrom
lidavidm:arrow-12686
Closed

ARROW-12686: [C++][Python][FlightRPC] Convert Flight reader into a regular reader#10267
lidavidm wants to merge 1 commit into
apache:masterfrom
lidavidm:arrow-12686

Conversation

@lidavidm

@lidavidm lidavidm commented May 7, 2021

Copy link
Copy Markdown
Member

This provides compatibility with APIs that expect regular RecordBatchReaders, e.g. exporting via the C Data Interface. The Flight interface itself cannot implement RecordBatchReader because getting the schema is not an infallible operation.

@github-actions

github-actions Bot commented May 7, 2021

Copy link
Copy Markdown

@lidavidm lidavidm changed the title ARROW-12686: [C++][FlightRPC] Convert Flight reader into a regular reader ARROW-12686: [C++][Python][FlightRPC] Convert Flight reader into a regular reader May 7, 2021

@westonpace westonpace left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one thought but not necessary IMO.

Comment thread python/pyarrow/_flight.pyx Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Perhaps add a note that it does this by first reading the schema or some kind of indication that calling to_reader will cause it to read the schema.

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.

2 participants