ArnavBalyan opened a new pull request, #49909:
URL: https://github.com/apache/arrow/pull/49909
### Rationale for this change
- Parquet spec requires that `REQUIRED` columns can't encode nulls
(max_definition_level = 0 always has null_count = 0).
- When this is violated by a writer (eg. parquet-mr with disabled
validating record consumer), the reader fails with "Unexpected end of stream"
during decode.
- Ensure that this issue can be detected eagerly by the reader, and show
correct error. We should consider mandating the validating consumer in upstream
to ensure it cannot accidentally write such cases.
- Closes #47662.
### What changes are included in this PR?
- Eagerly detect corrupt file and surface relevant error.
### Are these changes tested?
- Yes
### Are there any user-facing changes?
- Yes
--
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]