smaheshwar-pltr commented on code in PR #13225:
URL: https://github.com/apache/iceberg/pull/13225#discussion_r4719404981
##########
core/src/main/java/org/apache/iceberg/rest/RESTTableOperations.java:
##########
@@ -264,9 +308,47 @@ private boolean reconcileOnSimpleUpdate(
}
}
+ // TODO: Integrate and test encryption with REST scan planning
@Override
public FileIO io() {
- return io;
+ if (tableKeyId == null) {
+ return io;
+ }
+
+ if (encryptingFileIO == null) {
+ encryptingFileIO = EncryptingFileIO.combine(io, encryption());
+ }
+
+ return encryptingFileIO;
+ }
+
+ @Override
+ public EncryptionManager encryption() {
+ if (encryptionManager != null) {
+ return encryptionManager;
+ }
+
+ if (tableKeyId != null) {
+ Preconditions.checkArgument(
+ keyManagementClient != null,
+ "Cannot create encryption manager without a key management client.
Consider setting the '%s' catalog property",
+ CatalogProperties.ENCRYPTION_KMS_IMPL);
Review Comment:
Thanks, I've updated the message to mention `encryption.kms-type` too, here
and in Hive.
--
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]