Skip to content

GH-3342: Throw typed exception for Parquet footer error#3343

Open
qiyuandong-db wants to merge 2 commits intoapache:masterfrom
qiyuandong-db:throw-typed-parquet-footer-exception
Open

GH-3342: Throw typed exception for Parquet footer error#3343
qiyuandong-db wants to merge 2 commits intoapache:masterfrom
qiyuandong-db:throw-typed-parquet-footer-exception

Conversation

@qiyuandong-db
Copy link
Copy Markdown

Rationale for this change

Currently, ParquetFileReader throws RuntimeExceptions when footer parsing fails.

This can be improved by throwing a ParquetDecodingException instead, so footer corruption surfaces as a typed exception instead of a plain RuntimeException. This helps avoid matching on error message to catch errors occurred during footer parsing.

What changes are included in this PR?

Throw a ParquetDecodingException when Parquet footer parsing fails instead of a RuntimeException. The error messages remain the same.

Are these changes tested?

Existing tests. ParquetDecodingException extends RuntimeException so existing catch code should continue to work.

Are there any user-facing changes?

No.

Closes #3342

@github-actions
Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has had no activity for at least 2 months. If you are still working on this change or plan to move it forward, please leave a comment or push a new commit so we know to keep it open. Otherwise, this PR will be closed automatically in about one month. Thank you for your contribution to Apache Parquet!

@github-actions github-actions Bot added the stale label Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Throw typed exception for Parquet footer error

1 participant