Skip to content

Commit 4a887b5

Browse files
authored
Merge pull request #5 from DTStack/v1.4.0
V1.4.0
2 parents d63c81c + cb28f52 commit 4a887b5

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

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/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()){

0 commit comments

Comments
 (0)