Function get_boolean_rank_index

Source
fn get_boolean_rank_index(value: bool, is_null: bool) -> usize
Expand description

Return the index for the rank when ranking boolean array

The index is calculated as follows: if is_null is true, the index is 2 if is_null is false and the value is true, the index is 1 otherwise, the index is 0

false is 0 and true is 1 because these are the value when cast to number