Skip to content
Merged
Show file tree
Hide file tree
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
74 changes: 37 additions & 37 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ aes-gcm = "0.10"
anyhow = "1.0.72"
apache-avro = { version = "0.21", features = ["snappy", "zstandard"] }
array-init = "2"
arrow = "58"
arrow-arith = "58"
arrow-array = "58"
arrow-buffer = "58"
arrow-cast = "58"
arrow-ord = "58"
arrow-schema = "58"
arrow-select = "58"
arrow-string = "58"
arrow = "58.4"
arrow-arith = "58.4"
arrow-array = "58.4"
arrow-buffer = "58.4"
arrow-cast = "58.4"
arrow-ord = "58.4"
arrow-schema = "58.4"
arrow-select = "58.4"
arrow-string = "58.4"
as-any = "0.3.2"
async-trait = "0.1.89"
aws-config = "1.8.7"
Expand Down Expand Up @@ -121,7 +121,7 @@ murmur3 = "0.5.2"
once_cell = "1.20"
opendal = "0.57"
ordered-float = "4"
parquet = "58"
parquet = "58.4"
pilota = "0.11.10"
pretty_assertions = "1.4"
pyo3 = "0.28"
Expand Down
17 changes: 14 additions & 3 deletions crates/iceberg/src/arrow/reader/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -737,9 +737,10 @@ mod tests {
}
}

#[tokio::test]
async fn test_read_encrypted_parquet() {
let encryption_key = b"0123456789abcdef";
/// Writes a single-column Parquet file encrypted with `encryption_key`, then reads it
/// back through `ArrowReader` and asserts the round-tripped values. The key length
/// selects the AES-GCM variant in arrow-rs (16 -> AES-128, 32 -> AES-256).
async fn assert_encrypted_parquet_roundtrip(encryption_key: &[u8]) {
let aad_prefix = b"aad_prefix";

let schema = Arc::new(
Expand Down Expand Up @@ -807,6 +808,16 @@ mod tests {
assert_eq!(ids.values(), &[10, 20, 30]);
}

#[tokio::test]
async fn test_read_encrypted_parquet_aes_128() {
assert_encrypted_parquet_roundtrip(b"0123456789abcdef").await;
}

#[tokio::test]
async fn test_read_encrypted_parquet_aes_256() {
assert_encrypted_parquet_roundtrip(b"0123456789abcdef0123456789abcdef").await;
}

#[tokio::test]
async fn test_read_encrypted_parquet_without_key_metadata_fails() {
let encryption_key = b"0123456789abcdef";
Expand Down
Loading