Skip to content

Commit

Permalink
[hotfix][main]Sync jobs disable operator chains (#1263)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paddy0523 authored and FlechazoW committed Sep 18, 2022
1 parent 613b697 commit 53d6928
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chunjun-core/src/main/java/com/dtstack/chunjun/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ private static void exeSyncJob(
if (transformer) {
dataStream = syncStreamToTable(tableEnv, config, dataStreamSource);
} else {
env.disableOperatorChaining();
dataStream = dataStreamSource;
}

Expand All @@ -223,7 +224,7 @@ private static void exeSyncJob(
if (speed.getWriterChannel() > 0) {
dataStreamSink.setParallelism(speed.getWriterChannel());
}
// env.disableOperatorChaining();

JobExecutionResult result = env.execute(options.getJobName());
if (env instanceof MyLocalStreamEnvironment) {
PrintUtil.printResult(result.getAllAccumulatorResults());
Expand Down

0 comments on commit 53d6928

Please sign in to comment.