adamreeve opened a new pull request, #7633:
URL: https://github.com/apache/arrow-rs/pull/7633

   # Which issue does this PR close?
   
   Closes #7629.
   
   I also noticed that skipping pages in encrypted files was broken so have 
fixed that too.
   
   # What changes are included in this PR?
   
   * Refactors `SerializedPageReader` to reduce the use of `#[cfg(...)]` 
inline. To work with the borrow checker, I created a new 
`SerializedPageReaderContext` type to hold the `CryptoContext`.
   * Updates `SerializedPageReader::get_next_page` so that page headers and 
page data are decrypted when page indexes are used.
   * Updates `SerializedPageReader::skip_next_page` to update the page index so 
that encryption AADs are calculated correctly.
   * Adds new unit tests for reading with a page index and skipping pages in 
encrypted files.
   
   # Are there any user-facing changes?
   
   Only bug fixes.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to