diff --git a/spark/v3.3/spark/src/main/java/org/apache/iceberg/spark/source/SparkWrite.java b/spark/v3.3/spark/src/main/java/org/apache/iceberg/spark/source/SparkWrite.java index a080fcead13b..59fecd45cc2c 100644 --- a/spark/v3.3/spark/src/main/java/org/apache/iceberg/spark/source/SparkWrite.java +++ b/spark/v3.3/spark/src/main/java/org/apache/iceberg/spark/source/SparkWrite.java @@ -643,11 +643,11 @@ public DataWriter createWriter(int partitionId, long taskId, long e Table table = tableBroadcast.value(); PartitionSpec spec = table.specs().get(outputSpecId); FileIO io = table.io(); - + String operationId = queryId + "-" + epochId; OutputFileFactory fileFactory = OutputFileFactory.builderFor(table, partitionId, taskId) .format(format) - .operationId(queryId) + .operationId(operationId) .build(); SparkFileWriterFactory writerFactory = SparkFileWriterFactory.builderFor(table) diff --git a/spark/v3.4/spark/src/main/java/org/apache/iceberg/spark/source/SparkWrite.java b/spark/v3.4/spark/src/main/java/org/apache/iceberg/spark/source/SparkWrite.java index 96432178247d..fb49d0bff5f4 100644 --- a/spark/v3.4/spark/src/main/java/org/apache/iceberg/spark/source/SparkWrite.java +++ b/spark/v3.4/spark/src/main/java/org/apache/iceberg/spark/source/SparkWrite.java @@ -657,11 +657,11 @@ public DataWriter createWriter(int partitionId, long taskId, long e Table table = tableBroadcast.value(); PartitionSpec spec = table.specs().get(outputSpecId); FileIO io = table.io(); - + String operationId = queryId + "-" + epochId; OutputFileFactory fileFactory = OutputFileFactory.builderFor(table, partitionId, taskId) .format(format) - .operationId(queryId) + .operationId(operationId) .build(); SparkFileWriterFactory writerFactory = SparkFileWriterFactory.builderFor(table)