qiyuandong-db opened a new pull request, #3343: URL: https://github.com/apache/parquet-java/pull/3343
<!-- Thanks for opening a pull request! If you're new to Parquet-Java, information on how to contribute can be found here: https://parquet.apache.org/docs/contribution-guidelines/contributing Please open a GitHub issue for this pull request: https://github.com/apache/parquet-java/issues/new/choose and format pull request title as below: GH-${GITHUB_ISSUE_ID}: ${SUMMARY} or simply use the title below if it is a minor issue: MINOR: ${SUMMARY} --> ### Rationale for this change Currently, `ParquetFileReader` throws `RuntimeException`s 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. <!-- Please uncomment the line below and replace ${GITHUB_ISSUE_ID} with the actual Github issue id. --> Closes #3342 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
