Function build_new_table_info

Source
fn build_new_table_info(
    table_info: &RawTableInfo,
    alter_table_expr: AlterTableExpr,
) -> Result<TableInfo>
Expand description

Builds new table info after alteration.

This function creates a new table info by applying the alter table expression to the existing table info. For add column operations, it increments the next_column_id by the number of columns being added, which may result in gaps in the column id sequence.