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


##########
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:
   I'm also making this change across all Spark versions in this PR



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