deniskuzZ commented on code in PR #4292:
URL: https://github.com/apache/hive/pull/4292#discussion_r1205375803
##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergOutputCommitter.java:
##########
@@ -451,15 +452,21 @@ private void commitTable(FileIO io, ExecutorService
executor, OutputTable output
* @param startTime The start time of the commit - used only for logging
* @param results The object containing the new files we would like to add
to the table
*/
- private void commitWrite(Table table, long startTime, FilesForCommit
results) {
+ private void commitWrite(Table table, String branchName, long startTime,
FilesForCommit results) {
if (results.deleteFiles().isEmpty()) {
AppendFiles write = table.newAppend();
results.dataFiles().forEach(write::appendFile);
+ if (branchName != null) {
+ write.toBranch(branchName.substring(7));
Review Comment:
👍
--
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]