rdblue commented on a change in pull request #3883:
URL: https://github.com/apache/iceberg/pull/3883#discussion_r795280715



##########
File path: core/src/main/java/org/apache/iceberg/MetadataUpdate.java
##########
@@ -200,4 +200,28 @@ public String location() {
       return location;
     }
   }
+
+  class SetSnapshotRefs implements MetadataUpdate {

Review comment:
       I think this API should focus on updates to individual refs, rather than 
updating in bulk. What I added to the OpenAPI REST spec was 
`SetSnapshotRefUpdate`, which is a JSON object like this:
   
   ```json
   {
     "action": "set-snapshot-ref",
     "ref": "ref name",
     "type": "tag|branch",
     "snapshot-id": 50120357190375
   }
   ```
   
   These can optionally contain `max-ref-age-ms`, `max-snapshot-age-ms`, and 
`min-snapshots-to-keep`.




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