amogh-jahagirdar commented on code in PR #9953: URL: https://github.com/apache/iceberg/pull/9953#discussion_r1523777029
########## api/src/main/java/org/apache/iceberg/io/FileIO.java: ########## @@ -49,25 +49,25 @@ default InputFile newInputFile(String path, long length) { default InputFile newInputFile(DataFile file) { Preconditions.checkArgument( file.keyMetadata() == null, - "Cannot decrypt data file: {} (use EncryptingFileIO)", + "Cannot decrypt data file: %s (use EncryptingFileIO)", file.path()); - return newInputFile(file.path().toString()); + return newInputFile(file.path().toString(), file.fileSizeInBytes()); Review Comment: actually not quite right, since the default implementation of newInputfile with a path actually ignores the path. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org