Function partition_validity

pub fn partition_validity(array: &dyn Array) -> (Vec<u32>, Vec<u32>)
Expand description

Partition indices of an Arrow array into two categories:

  • valid: indices of non-null elements
  • nulls: indices of null elements

Optimized for performance with fast-path for all-valid arrays and bit-parallel scan for null-containing arrays.