Function check_column_metadata_invariants

Source
pub(crate) fn check_column_metadata_invariants(
    new_column_metadatas: &[ColumnMetadata],
    column_metadatas: &[ColumnMetadata],
) -> bool
Expand description

Checks whether the schema invariants hold between the existing and new column metadata.

Invariants:

  • Primary key (Tag) columns must exist in the new metadata, with identical name and ID.
  • Timestamp column must remain exactly the same in name and ID.