rok commented on code in PR #7600:
URL: https://github.com/apache/arrow-rs/pull/7600#discussion_r2126975773


##########
parquet/tests/encryption/encryption.rs:
##########
@@ -256,6 +256,72 @@ fn 
test_non_uniform_encryption_plaintext_footer_with_key_retriever() {
     verify_encryption_test_file_read(file, decryption_properties);
 }
 
+#[test]
+fn test_uniform_encryption_plaintext_footer_with_key_retriever() {
+    let test_data = arrow::util::test_util::parquet_test_data();
+    let path = 
format!("{test_data}/encrypt_columns_plaintext_footer.parquet.encrypted");
+    let file = File::open(path).unwrap();
+    let temp_file = tempfile::tempfile().unwrap();
+
+    let key_retriever = TestKeyRetriever::new()
+        .with_key("kf".to_owned(), b"0123456789012345".to_vec())
+        .with_key("kc1".to_owned(), b"1234567890123450".to_vec())
+        .with_key("kc2".to_owned(), b"1234567890123451".to_vec());
+
+    let encryption_properties = 
FileEncryptionProperties::builder(b"0123456789012345".to_vec())

Review Comment:
   Indeed, moved things into a more logical order and added comments.



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

Reply via email to