Skip to content

Commit

Permalink
always fix raw definition
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Jan 15, 2025
1 parent 79bbd11 commit ff42a06
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/frontend/src/handler/create_sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,7 @@ pub(crate) async fn reparse_table_for_sink(
) -> Result<(StreamFragmentGraph, Table, Option<PbSource>)> {
// Retrieve the original table definition and parse it to AST.
let definition = table_catalog.create_sql_ast_purified()?;
let raw_definition = table_catalog
.create_sql_ast()
.unwrap_or_else(|_| definition.clone() /* create table as */);
let raw_definition = table_catalog.create_sql_ast()?;

let Statement::CreateTable {
name,
Expand Down

0 comments on commit ff42a06

Please sign in to comment.