flyrain commented on a change in pull request #3287:
URL: https://github.com/apache/iceberg/pull/3287#discussion_r733976994
##########
File path: data/src/main/java/org/apache/iceberg/data/DeleteFilter.java
##########
@@ -185,6 +192,18 @@ protected boolean shouldKeep(T item) {
return remainingRowsFilter.filter(records);
}
+ public Roaring64Bitmap posDeletedRowIds() {
+ if (posDeletes.isEmpty()) {
+ return null;
+ }
+
+ if (posDeleteRowIds == null) {
+ List<CloseableIterable<Record>> deletes = Lists.transform(posDeletes,
this::openPosDeletes);
+ posDeleteRowIds = Deletes.toPositionBitMap(dataFile.path(),
CloseableIterable.concat(deletes));
Review comment:
Also added test `testMultiplePosDeleteFiles` for multiple pos-delete
files.
--
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]