clesaec commented on code in PR #2203:
URL: https://github.com/apache/avro/pull/2203#discussion_r1182480339
##########
lang/java/avro/src/main/java/org/apache/avro/file/DataFileReader.java:
##########
@@ -312,10 +312,10 @@ public long skip(long skip) throws IOException {
long length = in.length();
long remaining = length - position;
if (remaining > skip) {
- in.seek(skip);
+ in.seek(position + skip);
return in.tell() - position;
Review Comment:
And in same time, either `return skip; ... else { ... return length -
position; }` either put `return in.tell() - position;` at the end of function.
--
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]