diff --git a/paimon-core/src/main/java/org/apache/paimon/operation/RawFileSplitRead.java b/paimon-core/src/main/java/org/apache/paimon/operation/RawFileSplitRead.java index aea35d71980b..a6690ef66085 100644 --- a/paimon-core/src/main/java/org/apache/paimon/operation/RawFileSplitRead.java +++ b/paimon-core/src/main/java/org/apache/paimon/operation/RawFileSplitRead.java @@ -221,8 +221,10 @@ private FileRecordReader createFileReader( deletion = ((BitmapDeletionVector) deletionVector).get(); } - if (deletion != null && selection != null) { - selection = RoaringBitmap32.andNot(selection, deletion); + if (selection != null) { + if (deletion != null) { + selection = RoaringBitmap32.andNot(selection, deletion); + } if (selection.isEmpty()) { return new EmptyFileRecordReader<>(); }