Fokko commented on code in PR #6501:
URL: https://github.com/apache/iceberg/pull/6501#discussion_r1058364492
##########
python/pyiceberg/avro/file.py:
##########
@@ -183,7 +182,6 @@ def __next__(self) -> Record:
raise StopIteration
def _read_header(self) -> AvroFileHeader:
- self.input_stream.seek(0, SEEK_SET)
Review Comment:
Seek is not allowed on a stream, but it is okay to leave this out since we
do this directly after opening the file and we call it only once (after that it
is cached)
--
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]