rdblue commented on PR #4795:
URL: https://github.com/apache/iceberg/pull/4795#issuecomment-1135239351

   @CodingCat, I agree with @kbendick that the right way to do this is to add 
metadata to the snapshot so that you can identify it later. Also, if you 
already have an operation that is going to commit a snapshot (a 
`SnapshotProducer`) then you can use `apply` to write the changes and return 
the uncommitted snapshot. Here's an example:
   
   ```java
   AppendFiles append = table.newAppend()
   ...
   long snapshotId = append.apply().snapshotId();
   append.commit();
   ```


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