Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
Signed-off-by: Shanicky Chen <[email protected]>
  • Loading branch information
shanicky committed Dec 12, 2023
1 parent 6761b6d commit 2390232
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/meta/src/rpc/ddl_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,6 @@ impl DdlController {
async fn inject_replace_table_job_for_table_sink(
&self,
stream_ctx: StreamContext,
env: StreamEnvironment,
sink: Option<&Sink>,
creating_sink_table_fragments: Option<&TableFragments>,
dropping_sink_id: Option<SinkId>,
Expand Down Expand Up @@ -914,17 +913,16 @@ impl DdlController {
};

if let Some(replace_table_info) = target_replace_info {
let env = StreamEnvironment::from_protobuf(
replace_table_info.fragment_graph.get_env().unwrap(),
);
let stream_ctx =
StreamContext::from_protobuf(replace_table_info.fragment_graph.get_ctx().unwrap());

let StreamingJobId::Sink(sink_id) = job_id else {
panic!("additional replace table event only occurs when dropping sink into table")
};

let (streaming_job, context, table_fragments) = self
.inject_replace_table_job_for_table_sink(
env,
stream_ctx,
None,
None,
Some(sink_id),
Expand Down Expand Up @@ -1094,7 +1092,7 @@ impl DdlController {

Some(
self.inject_replace_table_job_for_table_sink(
env,
stream_ctx,
Some(s),
Some(&table_fragments),
None,
Expand Down

0 comments on commit 2390232

Please sign in to comment.