Skip to content

Commit

Permalink
Fix regular deserialization path
Browse files Browse the repository at this point in the history
  • Loading branch information
rok committed Dec 18, 2024
1 parent aa74618 commit ae29610
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions parquet/src/file/metadata/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,6 @@ impl ParquetMetaDataReader {
aad_prefix.clone(),
));
let decryptor = file_decryptor.clone().unwrap().get_footer_decryptor();
// file_decryptor = Some(FileDecryptor::new(file_decryption_properties, aad, aad_prefix));

decrypted_fmd_buf = decryptor.decrypt(prot.as_slice().as_ref(), aad_footer.as_ref())?;
prot = TCompactSliceInputProtocol::new(decrypted_fmd_buf.as_ref());
Expand Down Expand Up @@ -706,7 +705,7 @@ impl ParquetMetaDataReader {
Ok(ParquetMetaData::new(
file_metadata,
row_groups,
Some(file_decryptor.unwrap()),
file_decryptor,
))
}

Expand Down

0 comments on commit ae29610

Please sign in to comment.