Skip to content

Commit

Permalink
remove check for generated column on cdc table
Browse files Browse the repository at this point in the history
  • Loading branch information
st1page committed Oct 24, 2024
1 parent e6f830b commit 20a5c22
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/frontend/src/handler/create_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1088,18 +1088,6 @@ fn sanity_check_for_cdc_table(
constraints: &Vec<TableConstraint>,
source_watermarks: &Vec<SourceWatermark>,
) -> Result<()> {
for c in column_defs {
for op in &c.options {
if let ColumnOption::GeneratedColumns(_) = op.option {
return Err(ErrorCode::NotSupported(
"generated column defined on the table created from a CDC source".into(),
"Remove the generated column in the column list".into(),
)
.into());
}
}
}

// wildcard cannot be used with column definitions
if wildcard_idx.is_some() && !column_defs.is_empty() {
return Err(ErrorCode::NotSupported(
Expand Down

0 comments on commit 20a5c22

Please sign in to comment.