aarushigupta132 commented on code in PR #2677:
URL: https://github.com/apache/iceberg-rust/pull/2677#discussion_r3578331355


##########
crates/iceberg/src/transaction/snapshot.rs:
##########
@@ -443,28 +443,31 @@ impl<'a> SnapshotProducer<'a> {
         let manifest_list_path = self.generate_manifest_list_file_path(0);
         let next_seq_num = self.table.metadata().next_sequence_number();
         let first_row_id = self.table.metadata().next_row_id();
-        let writer = self
+
+        let raw_output = self
             .table
             .file_io()
-            .new_output(manifest_list_path.clone())?
-            .writer()
-            .await?;
+            .new_output(manifest_list_path.clone())?;
+
+        let (writer, encrypted) = if let Some(em) = 
self.table.encryption_manager() {
+            let enc = em.encrypt(raw_output);
+            (enc.writer().await?, Some((em, enc)))

Review Comment:
   agreed 🙏 , addressed 



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to