ajantha-bhat commented on code in PR #6090:
URL: https://github.com/apache/iceberg/pull/6090#discussion_r1053487339
##########
core/src/main/java/org/apache/iceberg/IncrementalFileCleanup.java:
##########
@@ -260,10 +260,18 @@ public void cleanFiles(TableMetadata beforeExpiration,
TableMetadata afterExpira
findFilesToDelete(manifestsToScan, manifestsToRevert, validIds,
afterExpiration);
deleteFiles(filesToDelete, "data");
- LOG.warn("Manifests to delete: {}", Joiner.on(",
").join(manifestsToDelete));
- LOG.warn("Manifests Lists to delete: {}", Joiner.on(",
").join(manifestListsToDelete));
+ LOG.debug("Manifests to delete: {}", Joiner.on(",
").join(manifestsToDelete));
+ LOG.debug("Manifests Lists to delete: {}", Joiner.on(",
").join(manifestListsToDelete));
deleteFiles(manifestsToDelete, "manifest");
deleteFiles(manifestListsToDelete, "manifest list");
+
+ if (!beforeExpiration.statisticsFiles().isEmpty()) {
+ Set<String> expiredStatisticsFilesLocations =
+ expiredStatisticsFilesLocations(beforeExpiration, afterExpiration);
+ LOG.debug(
+ "Statistics files to delete: {}", Joiner.on(",
").join(expiredStatisticsFilesLocations));
Review Comment:
Yes. It is only present in incremental flow (not reachable flow). I just
followed the same pattern which is present for manifest, manifest list files.
Shall I remove them too?
--
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]