Skip to content

Commit 77d6477

Browse files
committed
Merge branch 'v1.4.0' into v1.4.1
2 parents 5261849 + 933926a commit 77d6477

File tree

40 files changed

+1201
-113
lines changed

40 files changed

+1201
-113
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
target
22
.idea/
33
/.idea/*
4-
/target
5-
target
4+
target/
65
.class
76
.project
87
.classpath

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737

3838
```
3939
mvn clean package -Dmaven.test.skip
40-
41-
所有插件包会生成到plugins下
4240
```
4341

4442
打包结束后,项目根目录下会产生plugins目录,plugins目录下存放编译好的数据同步插件包

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<parent>
44
<artifactId>flink.sql</artifactId>
5-
<groupId>com.dtstack.flinkx</groupId>
5+
<groupId>com.dtstack.flink</groupId>
66
<version>1.0-SNAPSHOT</version>
77
<relativePath>../pom.xml</relativePath>
88
</parent>

core/src/main/java/com/dtstack/flink/sql/parser/SqlParser.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static void setLocalSqlPluginRoot(String localSqlPluginRoot){
5151
}
5252

5353
/**
54-
* ------flink 支持的 sql 语法包括--------
54+
* flink support sql syntax
5555
* CREATE TABLE sls_stream() with ();
5656
* CREATE (TABLE|SCALA) FUNCTION fcnName WITH com.dtstack.com;
5757
* insert into tb1 select * from tb2;
@@ -76,12 +76,9 @@ public static SqlTree parseSql(String sql) throws Exception {
7676
SqlTree sqlTree = new SqlTree();
7777

7878
for(String childSql : sqlArr){
79-
80-
8179
if(Strings.isNullOrEmpty(childSql)){
8280
continue;
8381
}
84-
8582
boolean result = false;
8683
for(IParser sqlParser : sqlParserList){
8784
if(!sqlParser.verify(childSql)){
@@ -99,7 +96,7 @@ public static SqlTree parseSql(String sql) throws Exception {
9996

10097
//解析exec-sql
10198
if(sqlTree.getExecSqlList().size() == 0){
102-
throw new RuntimeException("sql中没有可执行语句");
99+
throw new RuntimeException("sql no executable statement");
103100
}
104101

105102
for(InsertSqlParser.SqlParseResult result : sqlTree.getExecSqlList()){

elasticsearch/pom.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.

elasticsearch/elasticsearch-sink/pom.xml renamed to elasticsearch5/elasticsearch5-sink/pom.xml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,16 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
6-
<artifactId>sql.elasticsearch</artifactId>
7-
<groupId>com.dtstack.flinkx</groupId>
6+
<artifactId>sql.elasticsearch5</artifactId>
7+
<groupId>com.dtstack.flink</groupId>
88
<version>1.0-SNAPSHOT</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

12-
<artifactId>sql.sink.elasticsearch</artifactId>
13-
<name>elasticsearch-sink</name>
12+
<artifactId>sql.sink.elasticsearch5</artifactId>
13+
<name>elasticsearch5-sink</name>
1414

1515
<dependencies>
16-
<dependency>
17-
<groupId>junit</groupId>
18-
<artifactId>junit</artifactId>
19-
<version>3.8.1</version>
20-
<scope>test</scope>
21-
</dependency>
22-
23-
<dependency>
24-
<groupId>com.dtstack.flinkx</groupId>
25-
<artifactId>sql.core</artifactId>
26-
<version>1.0-SNAPSHOT</version>
27-
<scope>provided</scope>
28-
</dependency>
29-
3016
<dependency>
3117
<groupId>org.apache.flink</groupId>
3218
<artifactId>flink-connector-elasticsearch5_2.11</artifactId>

elasticsearch/elasticsearch-sink/src/main/java/com/dtstack/flink/sql/sink/elasticsearch/CustomerSinkFunc.java renamed to elasticsearch5/elasticsearch5-sink/src/main/java/com/dtstack/flink/sql/sink/elasticsearch/CustomerSinkFunc.java

File renamed without changes.

elasticsearch/elasticsearch-sink/src/main/java/com/dtstack/flink/sql/sink/elasticsearch/ElasticsearchSink.java renamed to elasticsearch5/elasticsearch5-sink/src/main/java/com/dtstack/flink/sql/sink/elasticsearch/ElasticsearchSink.java

File renamed without changes.

elasticsearch/elasticsearch-sink/src/main/java/com/dtstack/flink/sql/sink/elasticsearch/EsUtil.java renamed to elasticsearch5/elasticsearch5-sink/src/main/java/com/dtstack/flink/sql/sink/elasticsearch/EsUtil.java

File renamed without changes.

elasticsearch/elasticsearch-sink/src/main/java/com/dtstack/flink/sql/sink/elasticsearch/table/ElasticsearchSinkParser.java renamed to elasticsearch5/elasticsearch5-sink/src/main/java/com/dtstack/flink/sql/sink/elasticsearch/table/ElasticsearchSinkParser.java

File renamed without changes.

0 commit comments

Comments
 (0)