Function resolve_column_metadatas_with_metasrv

Source
pub(crate) fn resolve_column_metadatas_with_metasrv(
    column_metadatas: &[ColumnMetadata],
    region_metadatas: &[RegionMetadata],
) -> Result<Vec<RegionId>>
Expand description

Resolves column metadata inconsistencies among the given region metadatas by using the column metadata from the metasrv as the source of truth.

All region metadatas whose column metadata differs from the given column_metadatas will be marked for reconciliation.

Returns the region ids that need to be reconciled.