rodmeneses commented on code in PR #13161: URL: https://github.com/apache/iceberg/pull/13161#discussion_r2127423582
########## 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(); + // keep only file_path to avoid memory pressure + Set<Integer> columns = + file.content() == FileContent.POSITION_DELETES + ? Set.of(MetadataColumns.DELETE_FILE_PATH.fieldId()) + : null; // copy with stats for better filtering against data file stats - files.add(entry.file().copy()); + files.add(ContentFileUtil.copy(file, true, columns)); Review Comment: would it be possible to write/modify an unit test to validate this change? -- 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