Commit 9b8662e 1 parent ce045ca commit 9b8662e Copy full SHA for 9b8662e
File tree 3 files changed +15
-5
lines changed
3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -177,11 +177,15 @@ impl<T: AsyncRead + AsyncSeek + Unpin + Send> AsyncFileReader for T {
177
177
let mut buf = Vec :: with_capacity ( metadata_len) ;
178
178
self . take ( metadata_len as _ ) . read_to_end ( & mut buf) . await ?;
179
179
180
+ #[ cfg( feature = "encryption" ) ]
181
+ let fd = None ;
182
+ // let fd = file_decryption_properties.cloned();
183
+
180
184
Ok ( Arc :: new ( ParquetMetaDataReader :: decode_metadata (
181
185
& buf,
182
186
footer. encrypted_footer ( ) ,
183
187
#[ cfg( feature = "encryption" ) ]
184
- file_decryption_properties ,
188
+ fd ,
185
189
) ?) )
186
190
}
187
191
. boxed ( )
Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ use std::collections::HashMap;
19
19
20
20
#[ derive( Debug , Clone ) ]
21
21
pub struct FileEncryptionProperties {
22
- encrypt_footer : bool ,
23
- footer_key : Vec < u8 > ,
24
- column_keys : Option < HashMap < Vec < u8 > , Vec < u8 > > > ,
25
- aad_prefix : Option < Vec < u8 > > ,
22
+ pub encrypt_footer : bool ,
23
+ pub footer_key : Vec < u8 > ,
24
+ pub column_keys : Option < HashMap < Vec < u8 > , Vec < u8 > > > ,
25
+ pub aad_prefix : Option < Vec < u8 > > ,
26
26
}
27
27
28
28
impl FileEncryptionProperties {
Original file line number Diff line number Diff line change @@ -289,6 +289,11 @@ impl WriterProperties {
289
289
self . statistics_truncate_length
290
290
}
291
291
292
+ // Return the encryption properties
293
+ pub fn file_encryption_properties ( & self ) -> Option < & FileEncryptionProperties > {
294
+ self . file_encryption_properties . as_ref ( )
295
+ }
296
+
292
297
/// Returns `true` if type coercion is enabled.
293
298
pub fn coerce_types ( & self ) -> bool {
294
299
self . coerce_types
@@ -372,6 +377,7 @@ impl WriterProperties {
372
377
. and_then ( |c| c. bloom_filter_properties ( ) )
373
378
. or_else ( || self . default_column_properties . bloom_filter_properties ( ) )
374
379
}
380
+
375
381
}
376
382
377
383
/// Builder for [`WriterProperties`] parquet writer configuration.
You can’t perform that action at this time.
0 commit comments