Skip to content

feat(encryption) [9/N] Read encrypted parquet data-files#2584

Open
xanderbailey wants to merge 2 commits into
apache:mainfrom
xanderbailey:xb/encryption_decrypt_parquet
Open

feat(encryption) [9/N] Read encrypted parquet data-files#2584
xanderbailey wants to merge 2 commits into
apache:mainfrom
xanderbailey:xb/encryption_decrypt_parquet

Conversation

@xanderbailey
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

We're currently not able to decrypt PME encrypted files, all that's needed for this PR is to wire through the key_metadata from the manifest entries into the scan tasks and then configure the parquet reader with the correct encryption key and aad.

It's important to note that no encryption manager is needed here since the key_metadata on the manifest files contain the plaintext keys.

What changes are included in this PR?

Are these changes tested?

Tests follow the pattern on manually writing an encrypted parquet file using the raw arrow-rs writer and then using the FileScanTask and iceberg reader to read that tmp file.

I looked at using the parquet testing repo but the encrypted files there all use column based encryption which isn't supported by the spec. I'll separately track adding some files there that we can use here but the testing strategy here is consistent with how Java does things so I think this should be sufficient for us to continue.

@xanderbailey xanderbailey changed the title feat(encryption) [8/N] Add decryption support for parquet data-files feat(encryption) [8/N] Read encrypted parquet data-files Jun 4, 2026
@xanderbailey xanderbailey changed the title feat(encryption) [8/N] Read encrypted parquet data-files feat(encryption) [9/N] Read encrypted parquet data-files Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant