Skip to main content

validate_binary_operand

Function validate_binary_operand 

Source
pub(crate) fn validate_binary_operand(
    schema: &SeriesSchema,
    series: &[Series],
) -> Result<()>
Expand description

Validates one operand of binary_vectors: every series must sit on the schema’s grid, carry the schema’s fields, and hold one sample for every row its own axis places.

[Series] keeps its fields public, so a series built by struct literal can disagree with the schema it is handed in with, and then the row the axis names has nothing to read. The kernel cannot read such an operand, so the check lives here and runs before a field builds its matching tables: the output schema is reserved before it, but nothing of the walk is.