geruh opened a new pull request, #2871:
URL: https://github.com/apache/iceberg-python/pull/2871

   # Rationale for this change
   
   This PR adds the ability to change the set the current snapshot of a table. 
A bulk of this work was done in #758 but instead we have broken it out to focus 
on the set snapshot logic first. Additionally I added a few more tests, 
following the existing expire snapshots behavior.
   
   
   ## Are these changes tested?
   
   Yes, added tests
   
   ## Are there any user-facing changes?
   
   New api
   
   ```
   table.manage_snapshots().set_current_snapshot(snapshot_id=123456789).commit()
   
   
   table.manage_snapshots().set_current_snapshot(ref_name="my-tag").commit()
   
   # chaining
   table.manage_snapshots() \
         .create_tag(snapshot_id=older_id, tag_name="my-tag") \
         .set_current_snapshot(ref_name="my-tag") \
         .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