-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix reading large SequenceFile, RCFile, or Avro files #18837
Conversation
@electrum can we have a test for it? |
I'm not sure how to test this other than generating a 2GB+ file, which would negatively impact the CI, and doesn't seem to be worth the cost. |
@@ -230,10 +232,14 @@ public int read() | |||
public long skip(long length) | |||
throws IOException | |||
{ | |||
if (length <= 0) { | |||
return 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for length == 0, it's obvious.
why also for length < 0? is it worth explanatory comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the behavior specified in the Javadoc and in the default implementation.
Release notes
(x) Release notes are required, with the following suggested text:
Fixes #17890