rdblue commented on code in PR #2639: URL: https://github.com/apache/iceberg/pull/2639#discussion_r1133144064
########## parquet/src/main/java/org/apache/iceberg/parquet/Parquet.java: ########## @@ -1000,8 +1055,32 @@ public ReadBuilder withNameMapping(NameMapping newNameMapping) { return this; } + public ReadBuilder withFileEncryptionKey(ByteBuffer encryptionKey) { + this.fileEncryptionKey = encryptionKey; + return this; + } + + public ReadBuilder withAadPrefix(ByteBuffer aadPrefix) { + this.fileAadPrefix = aadPrefix; + return this; + } + @SuppressWarnings({"unchecked", "checkstyle:CyclomaticComplexity"}) public <D> CloseableIterable<D> build() { + FileDecryptionProperties fileDecryptionProperties = null; + if (fileEncryptionKey != null) { + byte[] aadPrefixArray = ByteBuffers.toByteArray(fileAadPrefix); + fileDecryptionProperties = + FileDecryptionProperties.builder() + .withFooterKey(fileEncryptionKey.array()) Review Comment: Same as 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: 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