aokolnychyi commented on code in PR #9251: URL: https://github.com/apache/iceberg/pull/9251#discussion_r1425368136
########## core/src/main/java/org/apache/iceberg/DeleteFileIndex.java: ########## @@ -474,68 +421,52 @@ private Collection<DeleteFile> loadDeleteFiles() { DeleteFileIndex build() { Iterable<DeleteFile> files = deleteFiles != null ? filterDeleteFiles() : loadDeleteFiles(); - boolean useColumnStatsFiltering = false; + EqualityDeletes globalDeletes = new EqualityDeletes(); + PartitionMap<EqualityDeletes> eqDeletesByPartition = PartitionMap.create(specsById); + PartitionMap<PositionDeletes> posDeletesByPartition = PartitionMap.create(specsById); + CharSequenceMap<PositionDeletes> posDeletesByPath = CharSequenceMap.create(); Review Comment: It would require a bit of extra space but it would not be possible to plan jobs at all otherwise if we have 1-1 mapping of data and deletes. I am going to add a benchmark. Without this PR, the planning did not complete in 5 minutes. With this PR, it took around 5 seconds. -- 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