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


##########
spark/v3.3/spark/src/main/java/org/apache/iceberg/spark/Spark3Util.java:
##########
@@ -1017,4 +1019,38 @@ public String unknown(
       return String.format("%s(%s) %s %s", transform, sourceName, direction, 
nullOrder);
     }
   }
+
+  public static Map<String, String> buildWriteOptions(String branch, 
LogicalWriteInfo info) {

Review Comment:
   I don't think that we can safely support a `branch` write option, so I'm not 
sure why we would pass the branch as a write option internally. Why not pass 
the branch into `SparkWriteConf` directly? Then we don't need this method and 
don't need to worry about future updates that allow a branch option from Spark 
to be used.



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