Skip to content

Commit 0c539d6

Browse files
committed
resolve conflict
1 parent c9ee582 commit 0c539d6

File tree

6 files changed

+24
-13
lines changed

6 files changed

+24
-13
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ public class SidePredicatesParser {
4949
private FlinkPlanner flinkPlanner = new FlinkPlanner();
5050

5151
public void fillPredicatesForSideTable(String exeSql, Map<String, AbstractSideTableInfo> sideTableMap) throws SqlParseException {
52-
53-
SqlNode sqlNode = org.apache.calcite.sql.parser.SqlParser.create(exeSql).parseStmt();
52+
SqlNode sqlNode = flinkPlanner.getParser().parse(exeSql);
5453
parseSql(sqlNode, sideTableMap, Maps.newHashMap());
5554
}
5655

launcher/src/main/java/com/dtstack/flink/sql/launcher/executor/StandaloneExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public StandaloneExecutor(JobParamsInfo jobParamsInfo) {
4747

4848
public void exec() throws Exception {
4949

50-
Preconditions.checkArgument(!StringUtils.equalsIgnoreCase(jobParamsInfo.getPluginLoadMode(), EPluginLoadMode.CLASSPATH.name()),
50+
Preconditions.checkArgument(StringUtils.equalsIgnoreCase(jobParamsInfo.getPluginLoadMode(), EPluginLoadMode.CLASSPATH.name()),
5151
"standalone only supports classpath mode");
5252

5353
JobGraph jobGraph = JobGraphBuildUtil.buildJobGraph(jobParamsInfo);

launcher/src/main/java/com/dtstack/flink/sql/launcher/executor/YarnJobClusterExecutor.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public void exec() throws Exception {
7979
if (jobParamsInfo.getAddShipFile() != null) {
8080
List<String> addShipFilesPath = parsePathFromStr(jobParamsInfo.getAddShipFile());
8181
for (String path : addShipFilesPath) {
82-
shipFiles.addAll(getShipFiles(path, jobParamsInfo.getPluginLoadMode(), jobGraph, clusterDescriptor));
82+
shipFiles.add(getAddShipFile(path));
8383
}
8484
}
8585

@@ -122,6 +122,18 @@ protected List<File> getShipFiles(String flinkJarPath, String pluginLoadMode, Jo
122122
return shipFiles;
123123
}
124124

125+
private File getAddShipFile(String addShipFile) {
126+
if (StringUtils.isEmpty(addShipFile) || !new File(addShipFile).exists()) {
127+
throw new RuntimeException("path " + addShipFile + " is not exist");
128+
}
129+
File shipFile = new File(addShipFile);
130+
if (shipFile.isFile()) {
131+
return shipFile;
132+
} else {
133+
throw new RuntimeException("addShipfile only supports file path,E.g : {\\\"a.keytab\\\",\\\"b.txt\\\"}");
134+
}
135+
}
136+
125137
private void dealFlinkLibJar(String flinkJarPath, YarnClusterDescriptor clusterDescriptor, List<File> shipFiles) throws MalformedURLException {
126138
if (StringUtils.isEmpty(flinkJarPath) || !new File(flinkJarPath).exists()) {
127139
throw new RuntimeException("path " + flinkJarPath + " is not exist");

tidb/tidb-side/tidb-all-side/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@
7373
</goals>
7474
<configuration>
7575
<tasks>
76-
<copy todir="${basedir}/../../../plugins/tidballside">
76+
<copy todir="${basedir}/../../../sqlplugins/tidballside">
7777
<fileset dir="target/">
7878
<include name="${project.artifactId}-${project.version}.jar"/>
7979
</fileset>
8080
</copy>
8181

82-
<move file="${basedir}/../../../plugins/tidballside/${project.artifactId}-${project.version}.jar"
83-
tofile="${basedir}/../../../plugins/tidballside/${project.name}-${git.branch}.jar"/>
82+
<move file="${basedir}/../../../sqlplugins/tidballside/${project.artifactId}-${project.version}.jar"
83+
tofile="${basedir}/../../../sqlplugins/tidballside/${project.name}-${git.branch}.jar"/>
8484
</tasks>
8585
</configuration>
8686
</execution>

tidb/tidb-side/tidb-async-side/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@
7474
</goals>
7575
<configuration>
7676
<tasks>
77-
<copy todir="${basedir}/../../../plugins/tidbasyncside">
77+
<copy todir="${basedir}/../../../sqlplugins/tidbasyncside">
7878
<fileset dir="target/">
7979
<include name="${project.artifactId}-${project.version}.jar"/>
8080
</fileset>
8181
</copy>
8282

83-
<move file="${basedir}/../../../plugins/tidbasyncside/${project.artifactId}-${project.version}.jar"
84-
tofile="${basedir}/../../../plugins/tidbasyncside/${project.name}-${git.branch}.jar"/>
83+
<move file="${basedir}/../../../sqlplugins/tidbasyncside/${project.artifactId}-${project.version}.jar"
84+
tofile="${basedir}/../../../sqlplugins/tidbasyncside/${project.name}-${git.branch}.jar"/>
8585
</tasks>
8686
</configuration>
8787
</execution>

tidb/tidb-sink/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@
7474
</goals>
7575
<configuration>
7676
<tasks>
77-
<copy todir="${basedir}/../../plugins/tidbsink">
77+
<copy todir="${basedir}/../../sqlplugins/tidbsink">
7878
<fileset dir="target/">
7979
<include name="${project.artifactId}-${project.version}.jar"/>
8080
</fileset>
8181
</copy>
8282

83-
<move file="${basedir}/../../plugins/tidbsink/${project.artifactId}-${project.version}.jar"
84-
tofile="${basedir}/../../plugins/tidbsink/${project.name}-${git.branch}.jar"/>
83+
<move file="${basedir}/../../sqlplugins/tidbsink/${project.artifactId}-${project.version}.jar"
84+
tofile="${basedir}/../../sqlplugins/tidbsink/${project.name}-${git.branch}.jar"/>
8585
</tasks>
8686
</configuration>
8787
</execution>

0 commit comments

Comments
 (0)