adamreeve commented on code in PR #7111: URL: https://github.com/apache/arrow-rs/pull/7111#discussion_r2011101642
########## parquet/src/file/writer.rs: ########## @@ -699,34 +803,61 @@ impl<'a> SerializedColumnWriter<'a> { /// `SerializedPageWriter` should not be used after calling `close()`. pub struct SerializedPageWriter<'a, W: Write> { sink: &'a mut TrackedWrite<W>, + #[cfg(feature = "encryption")] + page_encryptor: Option<PageEncryptor>, + #[cfg(not(feature = "encryption"))] + page_encryptor: Option<Never>, Review Comment: Oh I can just change the method to return both the page encryptor reference and a mutable reference to `self.sink`. -- 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