findinpath commented on code in PR #16525:
URL: https://github.com/apache/iceberg/pull/16525#discussion_r3505207410


##########
core/src/main/java/org/apache/iceberg/SnapshotProducer.java:
##########
@@ -505,6 +509,13 @@ public void commit() {
                     update.setBranchSnapshot(newSnapshot, targetBranch);
                   }
 
+                  EncryptionManager encryptionManager = ops.encryption();
+                  if (encryptionManager instanceof StandardEncryptionManager) {
+                    Map<String, EncryptedKey> keys =
+                        EncryptionUtil.encryptionKeys(encryptionManager);
+                    keys.values().forEach(update::addEncryptionKey);
+                  }

Review Comment:
   ```suggestion
                     if (encryptionManager instanceof 
StandardEncryptionManager) {
                       
EncryptionUtil.encryptionKeys(encryptionManager).values().forEach(update::addEncryptionKey);
                     }
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to