Skip to main content

compute_referenced_keys

Function compute_referenced_keys 

Source
fn compute_referenced_keys<K: ArrowNativeType>(
    keys: &ScalarBuffer<K>,
    mask: Option<&BooleanBuffer>,
) -> Vec<usize>
Expand description

Returns the unique dictionary keys referenced by the selected rows.

Sorting makes repeated keys adjacent for deduplication and preserves the ascending dictionary-key order of the dense mask path. This keeps the sparse and dense paths’ merged values ordered consistently.