Skip to content

Commit

Permalink
Refactored sink creation & updated DDL field init
Browse files Browse the repository at this point in the history
  • Loading branch information
Shanicky Chen committed Jun 17, 2024
1 parent b6787e8 commit bc9b781
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 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 @@ -698,10 +698,8 @@ pub(crate) fn insert_merger_to_union_with_project(
})),
..Default::default()
}],
stream_key: vec![],
append_only: false,
identity: uniq_name.to_string(),
fields: vec![],
fields: node.fields.clone(),
node_body: Some(project_node.clone()),
..Default::default()
});
Expand Down
2 changes: 0 additions & 2 deletions src/meta/src/rpc/ddl_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1279,8 +1279,6 @@ impl DdlController {

merge_stream_node.fields = sink_fields.to_vec();

input_project_node.fields.clone_from(&node.fields);

return false;
}
}
Expand Down

0 comments on commit bc9b781

Please sign in to comment.