You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/05/23 23:33:40 UTC

[GitHub] [iceberg] rdblue commented on pull request #4795: expose the latest snapshot id committed within a thread

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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org