Skip to content

Commit ccdd124

Browse files
adamreeverok
authored andcommitted
Add encryption_util module for tests
1 parent cc0a2ad commit ccdd124

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

parquet/src/arrow/arrow_writer/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,8 +1290,6 @@ mod tests {
12901290

12911291
use std::fs::File;
12921292

1293-
#[cfg(feature = "encryption")]
1294-
use crate::arrow::arrow_reader::tests::verify_encryption_test_file_read;
12951293
#[cfg(feature = "encryption")]
12961294
use crate::arrow::arrow_reader::ArrowReaderMetadata;
12971295
#[cfg(feature = "encryption")]
@@ -1300,6 +1298,8 @@ mod tests {
13001298
use crate::arrow::ARROW_SCHEMA_META_KEY;
13011299
#[cfg(feature = "encryption")]
13021300
use crate::encryption::encrypt::EncryptionKey;
1301+
#[cfg(feature = "encryption")]
1302+
use crate::util::test_common::encryption_util::verify_encryption_test_file_read;
13031303
use arrow::datatypes::ToByteSlice;
13041304
use arrow::datatypes::{DataType, Schema};
13051305
use arrow::error::Result as ArrowResult;

parquet/src/util/test_common/encryption_util.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ use arrow_array::{types, RecordBatch};
2727
use futures::TryStreamExt;
2828
use std::fs::File;
2929

30+
/// Tests reading an encrypted file from the parquet-testing repository
3031
pub(crate) fn verify_encryption_test_file_read(
3132
file: File,
3233
decryption_properties: FileDecryptionProperties,

0 commit comments

Comments
 (0)