diff --git a/src/compute/boolean.rs b/src/compute/boolean.rs index 8a17eeaba3..b8200ef5a9 100644 --- a/src/compute/boolean.rs +++ b/src/compute/boolean.rs @@ -244,7 +244,9 @@ pub fn any(array: &BooleanArray) -> bool { /// Check if all of the values in the array are `true` pub fn all(array: &BooleanArray) -> bool { - if array.is_empty() || array.null_count() > 0 { + if array.is_empty() { + true + } else if array.null_count() > 0 { false } else { let vals = array.values();