pub(crate) fn build_column_metadata_from_table_info(
column_schemas: &[ColumnSchema],
primary_key_indexes: &[usize],
name_to_ids: &HashMap<String, u32>,
) -> Result<Vec<ColumnMetadata>>Expand description
Constructs a vector of [ColumnMetadata] from the provided table information.
This function maps each [ColumnSchema] to its corresponding [ColumnMetadata] by
determining the semantic type (Tag, Timestamp, or Field) and retrieving the column ID
from the name_to_ids mapping.
Returns an error if any column name is missing in the mapping.