Skip to main content

check_generated

Function check_generated 

Source
pub fn check_generated(
    tc: &TestCase,
    leaf: ArrayRef,
    canonical_field: &Field,
    expected: ArrayRef,
    ctx: &mut ExecutionCtx,
) -> VortexResult<()>
Expand description

Checks the Arrow contract against a canonical reference and through generated containers.

The leaf must have an extension dtype. Build the canonical Arrow field and values from the source fixture. The same reference checks explicit and default exports. Use check_arrow to cover other explicit targets.

Extension leaves retain metadata and nested storage across top-level nullability changes and reconstruction from serialized metadata and stored storage.

Extra struct, list, and fixed-size-list parents preserve the leaf’s row count and independently draw their nullability and validity.