metric_engine::engine::alter::extract_new_columns

Function extract_new_columns

Source
pub fn extract_new_columns<'a>(
    requests: &'a [(RegionId, RegionAlterRequest)],
    physical_columns: &HashMap<String, ColumnId>,
    new_column_names: &mut HashSet<&'a str>,
    new_columns: &mut Vec<ColumnMetadata>,
) -> Result<()>
Expand description

Extract new columns from the create requests.

ยงPanics

This function will panic if the alter kind is not AddColumns.