Skip to content

Commit 2a0663e

Browse files
author
dapeng
committed
codeview
1 parent f56801c commit 2a0663e

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

core/src/main/java/com/dtstack/flink/sql/classloader/ClassLoaderManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ public static List<URL> getClassPath() {
9898

9999

100100

101-
public static URLClassLoader loadExtraJar(List<URL> jarURLList, URLClassLoader classLoader)
101+
public static URLClassLoader loadExtraJar(List<URL> jarUrlList, URLClassLoader classLoader)
102102
throws IllegalAccessException, InvocationTargetException {
103-
for(URL url : jarURLList){
103+
for(URL url : jarUrlList){
104104
if(url.toString().endsWith(".jar")){
105105
urlClassLoaderAddUrl(classLoader, url);
106106
}

core/src/main/java/com/dtstack/flink/sql/exec/ExecuteProcessHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public static ParamsInfo parseParams(String[] args) throws Exception {
117117
String confProp = URLDecoder.decode(options.getConfProp(), Charsets.UTF_8.toString());
118118
Properties confProperties = PluginUtil.jsonStrToObject(confProp, Properties.class);
119119

120-
List<URL> jarURList = getExternalJarUrls(options.getAddjar());
120+
List<URL> jarUrlList = getExternalJarUrls(options.getAddjar());
121121

122122
return ParamsInfo.builder()
123123
.setSql(sql)
@@ -127,7 +127,7 @@ public static ParamsInfo parseParams(String[] args) throws Exception {
127127
.setPluginLoadMode(pluginLoadMode)
128128
.setDeployMode(deployMode)
129129
.setConfProp(confProperties)
130-
.setJarUrlList(jarURList)
130+
.setJarUrlList(jarUrlList)
131131
.setLogLevel(logLevel)
132132
.build();
133133

core/src/main/java/com/dtstack/flink/sql/side/BaseAllReqRow.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
import org.apache.flink.table.runtime.types.CRow;
2727

2828
import java.sql.SQLException;
29-
import java.util.concurrent.Executors;
3029
import java.util.concurrent.ScheduledExecutorService;
30+
import java.util.concurrent.ScheduledThreadPoolExecutor;
3131
import java.util.concurrent.TimeUnit;
3232

3333
/**
@@ -60,7 +60,7 @@ public void open(Configuration parameters) throws Exception {
6060

6161
//start reload cache thread
6262
AbstractSideTableInfo sideTableInfo = sideInfo.getSideTableInfo();
63-
es = Executors.newSingleThreadScheduledExecutor(new DTThreadFactory("cache-all-reload"));
63+
es = new ScheduledThreadPoolExecutor(1,new DTThreadFactory("cache-all-reload"));
6464
es.scheduleAtFixedRate(() -> reloadCache(), sideTableInfo.getCacheTimeout(), sideTableInfo.getCacheTimeout(), TimeUnit.MILLISECONDS);
6565
}
6666

core/src/main/java/com/dtstack/flink/sql/side/ParserJoinField.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public static List<FieldInfo> getRowTypeInfo(SqlNode sqlNode, JoinScope scope, b
8080
switch(identifierSize) {
8181
case 1:
8282
fieldInfoList.addAll(getAllField(scope));
83+
break;
8384
default:
8485
SqlIdentifier tableIdentify = identifier.skipLast(1);
8586
JoinScope.ScopeChild scopeChild = scope.getScope(tableIdentify.getSimple());
@@ -99,6 +100,7 @@ public static List<FieldInfo> getRowTypeInfo(SqlNode sqlNode, JoinScope scope, b
99100
fieldInfo.setTypeInformation(type);
100101
fieldInfoList.add(fieldInfo);
101102
}
103+
break;
102104
}
103105
}
104106
}

0 commit comments

Comments
 (0)