ajantha-bhat commented on code in PR #12450:
URL: https://github.com/apache/iceberg/pull/12450#discussion_r2098471511


##########
core/src/main/java/org/apache/iceberg/PartitionStatsHandler.java:
##########
@@ -165,6 +165,14 @@ public static PartitionStatisticsFile 
computeAndWriteStatsFile(Table table, long
           "Using full compute as previous statistics file is not present for 
incremental compute.");
       stats = computeStats(table, snapshot, file -> true, false /* incremental 
*/).values();
     } else {
+      if (statisticsFile.snapshotId() == snapshotId) {
+        // no-op
+        LOG.info(
+            "Snapshot {} already has statistics file computed. Returning the 
same file as result.",

Review Comment:
   updated. 



-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to