Skip to content

Conversation

@rok
Copy link
Member

@rok rok commented Jun 4, 2025

Which issue does this PR close?

Closes #7599.

Rationale for this change

Written plaintext footer file will not include footer_signing_key_metadata, see proposed test for reproduction.
Written encrypted non-plaintext footer files shouldn't include encryption_algorithm, see proposed test for reproduction.

What changes are included in this PR?

footer_signing_key_metadata is now included in plaintext footer file and encryption_algorithm is not included in the footer if footer is non-plaintext.

Are there any user-facing changes?

This doesn't change user facing API.

@rok rok requested a review from adamreeve June 4, 2025 16:13
Copy link
Contributor

@adamreeve adamreeve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me thanks Rok

@adamreeve adamreeve changed the title When writing parquet plaintext footer files footer_signing_key_metadata is not included, encryption alghoritm is always written in footer Include footer key metadata when writing encrypted Parquet with a plaintext footer Jun 4, 2025
@rok rok requested a review from alamb June 4, 2025 22:25
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me -- thank you @rok and @adamreeve

@alamb alamb merged commit 026356b into apache:main Jun 6, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parquet Changes to the parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When writing parquet plaintext footer files footer_signing_key_metadata is not included, encryption alghoritm is always written in footer

3 participants