Skip to content

GH-49385: Clarify empty schema contract on stream_reader#49386

Open
emkornfield wants to merge 2 commits intoapache:mainfrom
emkornfield:guard_empty_schema
Open

GH-49385: Clarify empty schema contract on stream_reader#49386
emkornfield wants to merge 2 commits intoapache:mainfrom
emkornfield:guard_empty_schema

Conversation

@emkornfield
Copy link
Contributor

@emkornfield emkornfield commented Feb 24, 2026

Rationale for this change

StreamReader inherently does not support empty schemas. Guard this case with an exception.

What changes are included in this PR?

Added validation around the parquet reader passed in.

Are these changes tested?

Yes added unit tests.

Are there any user-facing changes?

A change that might be debatable is the constructor for this class can now throw, but it was never marked noexcept.

This PR contains a "Critical Fix".

@emkornfield emkornfield requested a review from pitrou February 24, 2026 23:51
@emkornfield
Copy link
Contributor Author

CI failures seem related to build infra?

@emkornfield
Copy link
Contributor Author

@pitrou any objections to me merging?

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.

3 participants