File tree 1 file changed +11
-0
lines changed
parquet/src/arrow/arrow_writer
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -533,6 +533,13 @@ impl PageWriter for ArrowPageWriter {
533
533
buf. data . push ( header) ;
534
534
buf. data . push ( data) ;
535
535
536
+ #[ cfg( feature = "encryption" ) ]
537
+ if let Some ( encryptor) = self . page_encryptor . as_mut ( ) {
538
+ if page. compressed_page ( ) . is_data_page ( ) {
539
+ encryptor. increment_page ( ) ;
540
+ }
541
+ }
542
+
536
543
Ok ( spec)
537
544
}
538
545
@@ -3717,7 +3724,11 @@ mod tests {
3717
3724
FileEncryptionProperties :: builder ( footer_key. to_vec ( ) ) . build ( ) ;
3718
3725
3719
3726
let props = WriterProperties :: builder ( )
3727
+ // Ensure multiple row groups
3720
3728
. set_max_row_group_size ( 50 )
3729
+ // Ensure multiple pages per row group
3730
+ . set_write_batch_size ( 20 )
3731
+ . set_data_page_row_count_limit ( 20 )
3721
3732
. with_file_encryption_properties ( file_encryption_properties)
3722
3733
. build ( ) ;
3723
3734
You can’t perform that action at this time.
0 commit comments