Skip to content

Conversation

etseidl
Copy link
Contributor

@etseidl etseidl commented Sep 10, 2025

Which issue does this PR close?

Note: this targets a feature branch, not main

Rationale for this change

Continuing the remodel

What changes are included in this PR?

This begins the process of replacing the current footer parsing code with the new version. As part of this much of the decryption machinery also needed to be changed.

Are these changes tested?

Should be covered by existing tests

Are there any user-facing changes?

Yes

@github-actions github-actions bot added the parquet Changes to the parquet crate label Sep 10, 2025
encrypted_footer: bool,
file_decryption_properties: Option<&FileDecryptionProperties>,
) -> Result<ParquetMetaData> {
let mut prot = TCompactSliceInputProtocol::new(buf);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

much of this deleted code wound up in thrift_gen.rs

Copy link
Contributor

Choose a reason for hiding this comment

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

FYI I am messing with this code as part of #8340 (mostly I moved where it lives) -- that isn't a problem per se, I am just giving you a heads up so we can coordinate what to merge when in what order, etc

@alamb
Copy link
Contributor

alamb commented Sep 11, 2025

Thanks @etseidl -- I hope to review this PR later today or tomorrow

encrypted_footer: bool,
file_decryption_properties: Option<&FileDecryptionProperties>,
) -> Result<ParquetMetaData> {
let mut prot = TCompactSliceInputProtocol::new(buf);
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI I am messing with this code as part of #8340 (mostly I moved where it lives) -- that isn't a problem per se, I am just giving you a heads up so we can coordinate what to merge when in what order, etc


/// create meta data from thrift encoded bytes
pub fn decode_file_metadata(buf: &[u8]) -> Result<ParquetMetaData> {
let mut prot = ThriftCompactInputProtocol::new(buf);
Copy link
Contributor

Choose a reason for hiding this comment

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

2a5662a25de3a724f5ac08965d275233

@etseidl
Copy link
Contributor Author

etseidl commented Sep 12, 2025

Thanks for the review @alamb! On to the next one 😄

@etseidl etseidl merged commit 8f5be54 into apache:gh5854_thrift_remodel Sep 12, 2025
16 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.

2 participants