rdblue commented on code in PR #2639: URL: https://github.com/apache/iceberg/pull/2639#discussion_r1155355435
########## parquet/src/main/java/org/apache/iceberg/parquet/ReadConf.java: ########## @@ -185,7 +186,12 @@ private Map<Long, Long> generateOffsetToStartPos(Schema schema) { return null; } - try (ParquetFileReader fileReader = newReader(file, ParquetReadOptions.builder().build())) { + FileDecryptionProperties decryptionProperties = + (options == null) ? null : options.getDecryptionProperties(); + + try (ParquetFileReader fileReader = + newReader( + file, ParquetReadOptions.builder().withDecryption(decryptionProperties).build())) { Review Comment: I'm not talking about reformatting the line breaks, I mean to create a variable: ```java ParquetReadOptions readOptions = ParquetReadOptions.builder().withDecryption(decryptionProperties).build(); try (ParquetFileReader fileReader = newReader(file, readOptions)) { ... } ``` -- 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