Skip to content

Commit

Permalink
Spark 3.5: Fix clobbering of files across streaming epochs when query…
Browse files Browse the repository at this point in the history
… ID is reused (apache#9255)
  • Loading branch information
amogh-jahagirdar authored and geruh committed Jan 25, 2024
1 parent be65e0b commit e8c3b5d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -673,11 +673,11 @@ public DataWriter<InternalRow> 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)
Expand Down

0 comments on commit e8c3b5d

Please sign in to comment.