partition

Function partition 

Source
pub fn partition<A: AnnotationFn>(
    expr: Expression,
    scope: &DType,
    annotate_fn: A,
) -> VortexResult<PartitionedExpr<A::Annotation>>
Expand description

Partition an expression into sub-expressions that are uniquely associated with an annotation. A root expression is also returned that can be used to recombine the results of the partitions into the result of the original expression.

ยงNote

This function currently respects the validity of each field in the scope, but the not validity of the scope itself. The fix would be for the returned PartitionedExpr to include a partition expression for computing the validity, or to include that expression as part of the root.

See https://github.com/vortex-data/vortex/issues/1907.