Skip to main content

map_mysql_columns

Function map_mysql_columns 

Source
pub fn map_mysql_columns(
    raw: &[MySqlColumn],
    selected: Option<&HashSet<&str>>,
) -> Result<Vec<RelationalColumn>>
Expand description

Maps raw MySQL columns to GreptimeDB ConcreteDataTypes via map_mysql_column_type.

selected controls which columns are mapped:

  • Some(names): map only the named columns, ignoring the rest. This is the declared form of CREATE EXTERNAL TABLE, where the user lists a subset of the remote table’s columns.
  • None: map every column, preserving their remote order. This is the inferred form, which exposes the whole remote table.