risingwave_common::catalog

Function get_dist_key_start_index_in_pk

source
pub fn get_dist_key_start_index_in_pk(
    dist_key_in_pk_indices: &[usize],
) -> Option<usize>
Expand description

Get distribution key start index in pk, and return None if dist_key_in_pk_indices is not empty or continuous. Note that dist_key_in_pk_indices may be shuffled, the start index should be the minimum value.