rbalamohan commented on code in PR #1639:
URL: https://github.com/apache/avro/pull/1639#discussion_r848034895
##########
lang/java/avro/src/main/java/org/apache/avro/file/DataFileReader.java:
##########
@@ -69,10 +69,9 @@ public static <D> FileReader<D> openReader(SeekableInput in,
DatumReader<D> read
length -= bytesRead;
offset += bytesRead;
}
- in.seek(0);
if (Arrays.equals(MAGIC, magic)) // current format
- return new DataFileReader<>(in, reader);
+ return newreturn new DataFileReader<>(in, reader, magic);
Review Comment:
Something went wrong in applying the patch in the branch being uploaded for
PR. Let me fix it.
--
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]