datafusion_common::utils

Function evaluate_partition_ranges

Source
pub fn evaluate_partition_ranges(
    num_rows: usize,
    partition_columns: &[SortColumn],
) -> Result<Vec<Range<usize>>>
Expand description

Given a list of 0 or more already sorted columns, finds the partition ranges that would partition equally across columns.

See partition for more details.