Skip to content

Commit

Permalink
merge dev and formate code
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyan1998 committed Oct 9, 2023
1 parent 193809e commit 01d4d27
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
3 changes: 0 additions & 3 deletions dinky-admin/src/main/java/org/dinky/data/dto/TaskDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
import java.util.Map;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;

import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
import org.dinky.service.UDFTemplateService;
import org.dinky.service.UserService;
import org.dinky.utils.FragmentVariableUtils;
import org.dinky.utils.JSONUtil;
import org.dinky.utils.JsonUtils;
import org.dinky.utils.RunTimeUtil;
import org.dinky.utils.UDFUtils;

Expand Down Expand Up @@ -357,7 +357,7 @@ public List<SqlExplainResult> explainTask(TaskDTO task) throws NotSupportExplain
public ObjectNode getJobPlan(TaskDTO task) {
JobManager jobManager = JobManager.buildPlanMode(buildJobConfig(task));
String planJson = jobManager.getJobPlanJson(task.getStatement());
return JSONUtil.parseObject(planJson);
return JsonUtils.parseObject(planJson);
}

@Override
Expand Down Expand Up @@ -588,7 +588,7 @@ public String exportJsonByTaskId(Integer taskId) {
}

// path
ObjectNode jsonNode = (ObjectNode) JSONUtil.toJsonNode(task);
ObjectNode jsonNode = (ObjectNode) JsonUtils.toJsonNode(task);
jsonNode.put("path", getTaskPathByTaskId(taskId));

// clusterConfigurationName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@

import org.dinky.metadata.result.JdbcSelectResult;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;

import cn.hutool.cache.Cache;
import cn.hutool.cache.impl.TimedCache;
import java.util.concurrent.TimeUnit;

import cn.hutool.cache.Cache;
Expand Down
9 changes: 4 additions & 5 deletions dinky-core/src/main/java/org/dinky/job/JobConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@

import org.dinky.assertion.Asserts;
import org.dinky.data.constant.NetConstant;
import org.dinky.executor.ExecutorSetting;
import org.dinky.gateway.config.FlinkConfig;
import org.dinky.executor.ExecutorConfig;
import org.dinky.gateway.config.FlinkConfig;
import org.dinky.gateway.config.GatewayConfig;
import org.dinky.gateway.enums.GatewayType;
import org.dinky.gateway.enums.SavePointStrategy;
Expand Down Expand Up @@ -228,9 +227,9 @@ public ExecutorConfig getExecutorSetting() {
address,
checkpoint,
parallelism,
useSqlFragment,
useStatementSet,
useBatchModel,
fragment,
statementSet,
batchModel,
savePointPath,
jobName,
configJson,
Expand Down

0 comments on commit 01d4d27

Please sign in to comment.