Skip to content

Conversation

qiyuandong-db
Copy link

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Throw typed exception for Parquet footer error

1 participant