rdblue commented on code in PR #9359:
URL: https://github.com/apache/iceberg/pull/9359#discussion_r1439977630
##########
core/src/main/java/org/apache/iceberg/encryption/StandardEncryptionManager.java:
##########
@@ -67,7 +72,15 @@ public InputFile decrypt(EncryptedInputFile encrypted) {
@Override
public Iterable<InputFile> decrypt(Iterable<EncryptedInputFile> encrypted) {
// Bulk decrypt is only applied to data files. Returning source input
files for parquet.
- return Iterables.transform(encrypted, this::decrypt);
+ if (nativeDataEncryption) {
+ return Iterables.transform(encrypted, this::getSourceFile);
+ } else {
+ return Iterables.transform(encrypted, this::decrypt);
+ }
+ }
+
+ private InputFile getSourceFile(EncryptedInputFile encryptedFile) {
Review Comment:
Style: Iceberg method names should not include `get`. Instead, use a more
helpful verb like `create` or `find`, or simply leave it out.
--
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]