rdblue commented on a change in pull request #3104:
URL: https://github.com/apache/iceberg/pull/3104#discussion_r780845128
##########
File path: api/src/main/java/org/apache/iceberg/Table.java
##########
@@ -173,6 +190,13 @@ default String name() {
*/
UpdateLocation updateLocation();
+ /**
+ * Create a new {@link UpdateSnapshotRefs} to update snapshot references and
commit the changes.
+ *
+ * @return a new {@link UpdateSnapshotRefs}
+ */
+ UpdateSnapshotRefs updateRefs();
Review comment:
How do you think the other table mutations should handle refs? For
example, an append might look like this:
```java
table.newAppend()
.appendFile(someFile)
.commit();
```
Should we add an optional `branch` to all of the `SnapshotProducer`
operations?
```java
table.newAppend()
.appendFile(someFile)
.branch("some_branch")
.commit();
```
Curious what you've been thinking.
--
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]