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


##########
parquet/src/main/java/org/apache/iceberg/parquet/Parquet.java:
##########
@@ -231,6 +243,31 @@ private WriteBuilder createContextFunc(
       return this;
     }
 
+    private FileEncryptionProperties 
createEncryptionProperties(EncryptionKeyMetadata keyMetadata) {
+      Preconditions.checkArgument(keyMetadata != null, "Null key metadata");
+
+      // Native Parquet encryption can be activated only by envelope metadata.
+      // Other metadata types imply flat/generic file encryption
+      if (!(keyMetadata instanceof EnvelopeKeyMetadata)) {

Review Comment:
   If we only support one type of key metadata, then we should only accept that 
key metadata right?
   
   Or maybe this should be a key rather than a wrapper class?



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