From 20a5c2257905518da40d0ce64bedc26bc78a02e5 Mon Sep 17 00:00:00 2001 From: st1page <1245835950@qq.com> Date: Thu, 24 Oct 2024 19:17:00 +0800 Subject: [PATCH] remove check for generated column on cdc table --- src/frontend/src/handler/create_table.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/frontend/src/handler/create_table.rs b/src/frontend/src/handler/create_table.rs index cac81d904d038..0c450bd6821bc 100644 --- a/src/frontend/src/handler/create_table.rs +++ b/src/frontend/src/handler/create_table.rs @@ -1088,18 +1088,6 @@ fn sanity_check_for_cdc_table( constraints: &Vec, source_watermarks: &Vec, ) -> 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(