stevenzwu commented on code in PR #13161:
URL: https://github.com/apache/iceberg/pull/13161#discussion_r2127139858


##########
core/src/main/java/org/apache/iceberg/DeleteFileIndex.java:
##########
@@ -454,8 +454,14 @@ private Collection<DeleteFile> loadDeleteFiles() {
                 try (CloseableIterable<ManifestEntry<DeleteFile>> reader = 
deleteFile) {
                   for (ManifestEntry<DeleteFile> entry : reader) {
                     if (entry.dataSequenceNumber() > minSequenceNumber) {
+                      DeleteFile file = entry.file();
+                      boolean dropStats = file.content() == 
FileContent.POSITION_DELETES;

Review Comment:
   this block can be replaced with this method from `ContentFileUtil`
   ```
   public static <F extends ContentFile<K>, K> K copy(
         F file, boolean withStats, Set<Integer> requestedColumnIds)
   ```



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