pub fn assert_execution_paths(
inputs: &[ArrayRef],
operation: impl Fn(&[ArrayRef]) -> VortexResult<ArrayRef>,
expected: ExpectedOutcome,
ctx: &mut ExecutionCtx,
)Expand description
Assert that an operation matches expected on batch, row, and constant inputs.
inputs must contain at least one array, and every input must have the same length. The
operation must preserve that length. Input rows must be readable independently of the operation.
Batch execution recursively materializes the result before comparison. Row execution reads a
fresh lazy result with ArrayRef::execute_scalar. Constant execution builds another operation
for each row, with all inputs replaced by one-row ConstantArrays, then materializes it.
ExpectedOutcome::Error requires every observed row to fail, even when batch execution fails.
For empty arrays, only the batch path is checked because no row or constant input exists.
ยงPanics
Panics if the input requirements do not hold or an execution path differs from expected.