smaheshwar-pltr commented on code in PR #19309:
URL: https://github.com/apache/iceberg/pull/19309#discussion_r4803396235


##########
spark/v4.2/spark/src/main/java/org/apache/iceberg/spark/actions/ComputeTableStatsSparkAction.java:
##########
@@ -111,7 +111,8 @@ private Result doExecute() {
   private StatisticsFile writeStatsFile(List<Blob> blobs) {
     LOG.info("Writing stats for table {} for snapshot {}", table.name(), 
snapshotId());
     OutputFile outputFile = table.io().newOutputFile(outputPath());
-    try (PuffinWriter writer = 
Puffin.write(outputFile).createdBy(appIdentifier()).build()) {
+    try (PuffinWriter writer =
+        
Puffin.write(outputFile).createdBy(appIdentifier()).overwrite().build()) {

Review Comment:
   (Names include a random UUID - 
[`outputPath`](https://github.com/apache/iceberg/blob/56c11c953d28c0547a058635babebefddfc26dcb/spark/v4.2/spark/src/main/java/org/apache/iceberg/spark/actions/ComputeTableStatsSparkAction.java#L174-L178))



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