Skip to content

Commit

Permalink
Add NullState::is_null
Browse files Browse the repository at this point in the history
  • Loading branch information
joroKr21 committed Jul 22, 2024
1 parent 63efaee commit 38b0041
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,12 @@ impl NullState {
}
}

/// Check if the accumulated value for the group at the given `index` is `null`,
/// meaning that no values passing the filter were seen yet for this group.
pub fn is_null(&self, index: usize) -> bool {
!self.seen_values.get_bit(index)
}

/// Creates the a [`NullBuffer`] representing which group_indices
/// should have null values (because they never saw any values)
/// for the `emit_to` rows.
Expand Down

0 comments on commit 38b0041

Please sign in to comment.