liurenjie1024 commented on code in PR #738:
URL: https://github.com/apache/iceberg-rust/pull/738#discussion_r1872484518


##########
crates/iceberg/src/spec/manifest.rs:
##########
@@ -203,12 +206,80 @@ impl ManifestWriter {
         partition_summary
     }
 
-    /// Write a manifest.
-    pub async fn write(mut self, manifest: Manifest) -> Result<ManifestFile> {
+    /// Add a new manifest entry.
+    pub fn add(&mut self, mut entry: ManifestEntry) -> Result<()> {

Review Comment:
   I'm not convinced. If we ask user to provide `ManifestEntry`, it would be 
confusing to user which part will be used and which part not. I think the style 
in java would be more clear from a user's view. If we to use `ManifestEntry` 
approach, we must have clear documentation about the behavior of each part, 
e.g. which is ignored, which is reserved.



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