nastra commented on code in PR #7286:
URL: https://github.com/apache/iceberg/pull/7286#discussion_r1159413996
##########
core/src/main/java/org/apache/iceberg/inmemory/InMemoryInputFile.java:
##########
@@ -75,7 +75,7 @@ private static class InMemorySeekableInputStream extends
SeekableInputStream {
@Override
public long getPos() throws IOException {
checkOpen();
- return length - delegate.available();
+ return (long) length - delegate.available();
Review Comment:
I would rather make `length` a long a few lines above
--
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]