rdblue commented on code in PR #6432: URL: https://github.com/apache/iceberg/pull/6432#discussion_r1055834074
########## core/src/main/java/org/apache/iceberg/deletes/Deletes.java: ########## @@ -144,7 +162,17 @@ public static <T extends StructLike> PositionDeleteIndex toPositionIndex( deletes -> CloseableIterable.transform( locationFilter.filter(deletes), row -> (Long) POSITION_ACCESSOR.get(row))); - return toPositionIndex(CloseableIterable.concat(positions)); + return toPositionIndex(positions); + } + + public static PositionDeleteIndex toPositionIndex(List<CloseableIterable<Long>> positions) { + PositionDeleteIndex positionDeleteIndex = new BitmapPositionDeleteIndex(); Review Comment: I don't think this should duplicate the logic of the other method. It should still concatenate into a `CloseableIterable`. But if there is more than one `CloseableIterable` it should use a `ParallelIterable` to do it. -- 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