rdblue commented on code in PR #5010:
URL: https://github.com/apache/iceberg/pull/5010#discussion_r934049630


##########
core/src/main/java/org/apache/iceberg/FastAppend.java:
##########
@@ -114,6 +114,21 @@ public FastAppend appendManifest(ManifestFile manifest) {
     return this;
   }
 
+  @Override
+  public FastAppend toBranch(String branch) {
+    Preconditions.checkArgument(branch != null, "branch cannot be null");
+    if (ops.current().ref(branch) == null) {
+      super.createNewRef(branch);

Review Comment:
   This should be handled by `SnapshotProducer`, as I noted on #4926.



-- 
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-unsubscr...@iceberg.apache.org

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


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

Reply via email to