Commit cc76136 1 parent 1f36481 commit cc76136 Copy full SHA for cc76136
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 @@ -178,11 +178,15 @@ impl<T: AsyncRead + AsyncSeek + Unpin + Send> AsyncFileReader for T {
178
178
let mut buf = Vec :: with_capacity ( metadata_len) ;
179
179
self . take ( metadata_len as _ ) . read_to_end ( & mut buf) . await ?;
180
180
181
+ #[ cfg( feature = "encryption" ) ]
182
+ let fd = None ;
183
+ // let fd = file_decryption_properties.cloned();
184
+
181
185
Ok ( Arc :: new ( ParquetMetaDataReader :: decode_metadata (
182
186
& buf,
183
187
footer. encrypted_footer ( ) ,
184
188
#[ cfg( feature = "encryption" ) ]
185
- file_decryption_properties ,
189
+ fd ,
186
190
) ?) )
187
191
}
188
192
. 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