Skip to content

Commit a23d867

Browse files
committed
check nulls
1 parent 67a138d commit a23d867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arrow-select/src/nullif.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub fn nullif(left: &dyn Array, right: &BooleanArray) -> Result<ArrayRef, ArrowE
7171

7272
// Compute left null bitmap & !right
7373

74-
let combined = if let Some(left) = left_data.nulls() {
74+
let combined = if let Some(left) = left_data.nulls() && left.null_count() > 0 {
7575
BooleanBuffer::from_bitwise_binary_op(
7676
left.buffer(),
7777
left.offset(),

0 commit comments

Comments
 (0)