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 (#3933)
  • Loading branch information
aiwenmo authored Nov 21, 2024
1 parent 03c351f commit be464fa
Show file tree
Hide file tree
Showing 46 changed files with 1,547 additions and 1,252 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 be464fa

Please sign in to comment.