mz_persist_types::schema

Function backward_compatible

Source
pub fn backward_compatible(old: &DataType, new: &DataType) -> Option<Migration>
Expand description

Returns a function to migrate arrow data encoded by old to be the same DataType as arrow data encoded by new, if new is backward compatible with old. Exposed for testing.