Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table_2.11</artifactId>
<version>${flink.version}</version>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.5</version>
</dependency>

<dependency>
Expand All @@ -45,6 +45,25 @@
<version>${flink.version}</version>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table_2.11</artifactId>
<version>${flink.version}</version>
</dependency>

<dependency>
<groupId>org.apache.calcite</groupId>
<artifactId>calcite-server</artifactId>
<!-- When updating the Calcite version, make sure to update the dependency exclusions -->
<version>1.16.0</version>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-cep-scala_2.11</artifactId>
<version>${flink.version}</version>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-scala_2.11</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,7 @@

package com.dtstack.flink.sql.parser;

import org.apache.calcite.sql.SqlBasicCall;
import org.apache.calcite.sql.SqlInsert;
import org.apache.calcite.sql.SqlJoin;
import org.apache.calcite.sql.SqlKind;
import org.apache.calcite.sql.SqlNode;
import org.apache.calcite.sql.SqlSelect;
import org.apache.calcite.sql.*;
import org.apache.calcite.sql.parser.SqlParseException;
import org.apache.calcite.sql.parser.SqlParser;
import org.apache.commons.lang3.StringUtils;
Expand Down Expand Up @@ -113,6 +108,10 @@ private static void parseNode(SqlNode sqlNode, SqlParseResult sqlParseResult){
sqlParseResult.addSourceTable(identifierNode.toString());
}
break;
case MATCH_RECOGNIZE:
SqlMatchRecognize node = (SqlMatchRecognize) sqlNode;
sqlParseResult.addSourceTable(node.getTableRef().toString());
break;
case UNION:
SqlNode unionLeft = ((SqlBasicCall)sqlNode).getOperands()[0];
SqlNode unionRight = ((SqlBasicCall)sqlNode).getOperands()[1];
Expand Down
11 changes: 11 additions & 0 deletions core/src/main/scala/com/dtstack/flink/App.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.dtstack.flink

/**
* Hello world!
*
*/
object App {
def main(args: Array[String]): Unit = {
println( "Hello World!" )
}
}
Loading