Skip to main content

resolve_over

Function resolve_over 

Source
pub fn resolve_over(
    value: &Value,
    extent: u64,
    open_extent: bool,
) -> Result<Vec<Partition>, String>
Expand description

Resolve the value of an over expression into the partitions it denotes, against a cursor of extent ordinals.

A string is parsed as a partition spec and resolved against [0, extent). A Partition is re-projected onto extent from its percentage bounds when its base extent differs. A PartitionSpec is resolved. A PartitionList is re-projected element by element. Value::None yields an empty list. Open-extent cursors reject specs, because they have no extent to resolve against.