Derive schema for cdc table when create a new Table or alter an existing Table
Derive schema for cdc table when create a new Table or alter an existing Table
Binds primary keys defined in SQL.
Binds constraints that can be only specified in column definitions,
currently generated columns and default columns.
Binds the column schemas declared in CREATE statement into ColumnDesc
.
If a column is marked as primary key
, its ColumnId
is also returned.
This primary key is not combined with table constraints yet.
Currently we only support Primary key table constraint, so just return pk names if it exists
gen_create_table_plan
generates the plan for creating a table without an external stream
source.
Generate stream plan for cdc table based on shared source.
In replace workflow, the table_id
is the id of the table to be replaced
in create table workflow, the table_id
is a placeholder will be filled in the Meta
gen_create_table_plan_with_source
generates the plan for creating a table with an external
stream source.