pvary commented on code in PR #3430:
URL: https://github.com/apache/hive/pull/3430#discussion_r924344226


##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/writer/WriterBuilder.java:
##########
@@ -95,7 +96,9 @@ public HiveIcebergWriter build() {
     int currentSpecId = table.spec().specId();
     int partitionId = attemptID.getTaskID().getId();
     int taskId = attemptID.getId();
-    String operationId = queryId + "-" + attemptID.getJobID();
+    Map<String, List<HiveIcebergWriter>> writers = 
WriterRegistry.writers(attemptID);
+    int writerCount = writers == null ? 0 : writers.size();
+    String operationId = queryId + "-" + attemptID.getJobID() + "-" + 
writerCount;

Review Comment:
   What about adding a random UUID adding to this, or using an AtomicInteger?



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