-
Notifications
You must be signed in to change notification settings - Fork 1k
[thrift-remodel] Begin replacing file metadata reader and convert footer decryption code #8313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[thrift-remodel] Begin replacing file metadata reader and convert footer decryption code #8313
Conversation
encrypted_footer: bool, | ||
file_decryption_properties: Option<&FileDecryptionProperties>, | ||
) -> Result<ParquetMetaData> { | ||
let mut prot = TCompactSliceInputProtocol::new(buf); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review @alamb! On to the next one 😄 |
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