Skip to main content

assert_schema_evolution_effective

Function assert_schema_evolution_effective 

Source
pub async fn assert_schema_evolution_effective<S: Sink + ?Sized>(sink: &S)
Expand description

Check 8. For a sink advertising supports_schema_evolution: read current_schema, apply a real add-column SchemaEvolution via evolve_schema, and assert the new column appears in a fresh current_schema(). Stronger than assert_capabilities_truthful, which only checks a no-op evolve does not error.

Panics if the sink does not advertise evolution (call it only on an evolvable sink), if current_schema() is None (nothing to diff against), or if the added column never surfaces (the evolution was a silent no-op).