Skip to main content

validate_vector_grouping

Function validate_vector_grouping 

Source
pub(crate) fn validate_vector_grouping(
    schema: &SeriesSchema,
    grouping: Grouping<'_>,
) -> Result<()>
Expand description

Validates the grouping a whole-vector operation addresses its series by.

The native route keys topk, bottomk and limitk groups by series labels only, while the existing planner also accepts a value field there, where it varies between samples. Refusing the field here keeps such a statement on the existing plan before native execution is chosen.