Skip to content

Commit

Permalink
Revert "fix"
Browse files Browse the repository at this point in the history
This reverts commit 918a377.
  • Loading branch information
Tan-JiaLiang committed Jan 6, 2025
1 parent 918a377 commit 7e423ca
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,12 @@ private FileRecordReader<InternalRow> createFileReader(
? new LazyField<>(() -> ((BitmapDeletionVector) deletionVector).get())
: null;

LazyField<RoaringBitmap32> selection = fileIndex;
BitmapIndexResult selection = fileIndex;
if (fileIndex != null && deletion != null) {
selection =
new LazyField<>(() -> RoaringBitmap32.andNot(fileIndex.get(), deletion.get()));
if (selection.get().isEmpty()) {
new BitmapIndexResult(
() -> RoaringBitmap32.andNot(fileIndex.get(), deletion.get()));
if (!selection.remain()) {
return new EmptyFileRecordReader<>();
}
}
Expand Down

0 comments on commit 7e423ca

Please sign in to comment.