Skip to content

Commit

Permalink
[Optimization-3932][cdc] Optimize CDCSOURCE and support sink print an…
Browse files Browse the repository at this point in the history
…d mock
  • Loading branch information
aiwenmo committed Nov 20, 2024
1 parent 16add5f commit d57e4ba
Show file tree
Hide file tree
Showing 24 changed files with 1,068 additions and 1,012 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ public FlinkSqlTask(TaskDTO task) {

@Override
public List<SqlExplainResult> explain() {
jobManager.setPlanMode(true);
return jobManager.explainSql(task.getStatement()).getSqlExplainResults();
}

public ObjectNode getJobPlan() {
jobManager.setPlanMode(true);
String planJson = jobManager.getJobPlanJson(task.getStatement());
return JsonUtils.parseObject(planJson);
}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ public interface SinkBuilder {

SinkBuilder create(FlinkCDCConfig config);

DataStreamSource<String> build(
CDCBuilder cdcBuilder,
void build(
StreamExecutionEnvironment env,
CustomTableEnvironment customTableEnvironment,
DataStreamSource<String> dataStreamSource);
Expand Down
Loading

0 comments on commit d57e4ba

Please sign in to comment.