Skip to content

Commit

Permalink
remove useSession
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyan1998 committed Oct 10, 2023
1 parent 270920b commit 8ed12b9
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ public JobConfig getJobConfig() {
.useResult(useResult)
.useChangeLog(useChangeLog)
.useAutoCancel(useAutoCancel)
.useSession(false)
.useRemote(true)
.address(address)
.jobName(jobName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public class APIExplainSqlDTO extends AbstractStatementDTO {
public JobConfig getJobConfig() {
return JobConfig.builder()
.type(GatewayType.LOCAL.getLongValue())
.useSession(false)
.useRemote(false)
.fragment(isFragment())
.statementSet(useStatementSet)
Expand Down
7 changes: 0 additions & 7 deletions dinky-admin/src/main/java/org/dinky/data/dto/TaskDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,6 @@ public class TaskDTO extends AbstractStatementDTO {
notes = "Flag indicating whether to use auto-canceling")
private boolean useAutoCancel;

@ApiModelProperty(
value = "Use Session",
dataType = "boolean",
example = "false",
notes = "Flag indicating whether to use a session")
private boolean useSession;

@ApiModelProperty(value = "Session", dataType = "String", example = "session_id", notes = "The session identifier")
private String session;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@ public JdbcSelectResult getCommonSqlData(Integer taskId) {
@Override
public IResult executeDDL(StudioDDLDTO studioDDLDTO) {
JobConfig config = studioDDLDTO.getJobConfig();
if (!config.isUseSession()) {
config.setAddress(
clusterInstanceService.buildEnvironmentAddress(config.isUseRemote(), studioDDLDTO.getClusterId()));
}
JobManager jobManager = JobManager.build(config);
return jobManager.executeDDL(studioDDLDTO.getStatement());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@ public JobPlanInfo getJobPlanInfo(String statement) {
public List<LineageRel> getLineage(String statement) {
JobConfig jobConfig = JobConfig.builder()
.type(GatewayType.LOCAL.getLongValue())
.useSession(false)
.useRemote(false)
.fragment(true)
.statementSet(useStatementSet)
Expand Down
7 changes: 0 additions & 7 deletions dinky-core/src/main/java/org/dinky/job/JobConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,6 @@ public class JobConfig {
notes = "Flag indicating whether to use auto-cancel")
private boolean useAutoCancel;

@ApiModelProperty(
value = "Flag indicating whether to use session",
dataType = "boolean",
example = "true",
notes = "Flag indicating whether to use session")
private boolean useSession;

@ApiModelProperty(
value = "Session information",
dataType = "String",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public void cancelJobSelect() {
.useResult(true)
.useChangeLog(true)
.useAutoCancel(true)
.useSession(true)
.session("s1")
.clusterId(2)
.jobName("Test")
Expand Down

0 comments on commit 8ed12b9

Please sign in to comment.