Skip to content

Commit

Permalink
both kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Apr 5, 2023
1 parent d4f3906 commit 0063967
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/compute/boolean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0063967

Please sign in to comment.