Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public InternalColumnDecryptionSetup setColumnCryptoMetadata(
"Re-use: wrong encryption key (column vs footer). Column: " + path);
}
if (!encryptedWithFooterKey && !Arrays.equals(columnDecryptionSetup.getKeyMetadata(), keyMetadata)) {
throw new ParquetCryptoRuntimeException("Decryptor re-use: Different footer key metadata ");
throw new ParquetCryptoRuntimeException("Decryptor re-use: Different footer key metadata");
}
}
return columnDecryptionSetup;
Expand All @@ -244,7 +244,8 @@ public InternalColumnDecryptionSetup setColumnCryptoMetadata(
} else {
if (encryptedWithFooterKey) {
if (null == footerKey) {
throw new ParquetCryptoRuntimeException("Column " + path + " is encrypted with NULL footer key");
throw new ParquetCryptoRuntimeException(
"Column " + path + " is encrypted with footer key, but the provided footer key is NULL");
}
columnDecryptionSetup = new InternalColumnDecryptionSetup(
path,
Expand All @@ -269,7 +270,8 @@ public InternalColumnDecryptionSetup setColumnCryptoMetadata(
}
}
if (null == columnKeyBytes) {
throw new ParquetCryptoRuntimeException("Column " + path + "is encrypted with NULL column key");
throw new ParquetCryptoRuntimeException("Column " + path
+ " is encrypted with column-specific key, but the provided column key is NULL");
}
columnDecryptionSetup = new InternalColumnDecryptionSetup(
path,
Expand Down