rok commented on code in PR #6637:
URL: https://github.com/apache/arrow-rs/pull/6637#discussion_r1956409751


##########
parquet/src/arrow/arrow_reader/mod.rs:
##########
@@ -788,6 +854,22 @@ impl ParquetRecordBatchReader {
             .build()
     }
 
+    /// Create a new [`ParquetRecordBatchReader`] from the provided chunk 
reader and [`FileDecryptionProperties`]
+    ///
+    /// Note: this is needed when the parquet file is encrypted
+    #[cfg(feature = "encryption")]
+    pub fn try_new_with_decryption<T: ChunkReader + 'static>(
+        reader: T,
+        batch_size: usize,
+        file_decryption_properties: Option<&FileDecryptionProperties>,
+    ) -> Result<Self> {
+        let options = ArrowReaderOptions::default()
+            
.with_file_decryption_properties(file_decryption_properties.cloned().unwrap());
+        ParquetRecordBatchReaderBuilder::try_new_with_decryption(reader, 
options)?

Review Comment:
   Same as previous.



-- 
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