rdblue commented on code in PR #2639:
URL: https://github.com/apache/iceberg/pull/2639#discussion_r1133145695


##########
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:
   Style: it would be better to create the new read options on a separate line.



-- 
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

Reply via email to