未验证 提交 1ed9c830 编写于 作者: L Liang Zhang 提交者: GitHub

rename shardingsphere-sql-parser-relation to shardingsphere-sql-parser-binder (#4684)

上级 f40f16f0
......@@ -36,7 +36,7 @@
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-sql-parser-relation</artifactId>
<artifactId>shardingsphere-sql-parser-binder</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
......
......@@ -36,7 +36,7 @@
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-sql-parser-relation</artifactId>
<artifactId>shardingsphere-sql-parser-binder</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
......
......@@ -34,7 +34,7 @@
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-sql-parser-relation</artifactId>
<artifactId>shardingsphere-sql-parser-binder</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
......
......@@ -34,7 +34,7 @@
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-sql-parser-relation</artifactId>
<artifactId>shardingsphere-sql-parser-binder</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
......
......@@ -74,7 +74,7 @@
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-sql-parser-relation</artifactId>
<artifactId>shardingsphere-sql-parser-binder</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
......
......@@ -74,7 +74,7 @@
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-sql-parser-relation</artifactId>
<artifactId>shardingsphere-sql-parser-binder</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
......
......@@ -32,7 +32,7 @@
<modules>
<module>shardingsphere-sql-parser-spi</module>
<module>shardingsphere-sql-parser-engine</module>
<module>shardingsphere-sql-parser-relation</module>
<module>shardingsphere-sql-parser-binder</module>
<module>shardingsphere-sql-parser-sql92</module>
<module>shardingsphere-sql-parser-mysql</module>
......
......@@ -23,7 +23,7 @@
<artifactId>shardingsphere-sql-parser</artifactId>
<version>5.0.0-RC1-SNAPSHOT</version>
</parent>
<artifactId>shardingsphere-sql-parser-relation</artifactId>
<artifactId>shardingsphere-sql-parser-binder</artifactId>
<name>${project.artifactId}</name>
<dependencies>
......
......@@ -81,6 +81,7 @@ public final class SQLStatementContextFactory {
* @param sqlStatement SQL statement
* @return SQL statement context
*/
@SuppressWarnings("unchecked")
public static SQLStatementContext newInstance(final RelationMetas relationMetas, final String sql, final List<Object> parameters, final SQLStatement sqlStatement) {
if (sqlStatement instanceof DMLStatement) {
return getDMLStatementContext(relationMetas, sql, parameters, (DMLStatement) sqlStatement);
......@@ -113,6 +114,7 @@ public final class SQLStatementContextFactory {
throw new UnsupportedOperationException(String.format("Unsupported SQL statement `%s`", sqlStatement.getClass().getSimpleName()));
}
@SuppressWarnings("unchecked")
private static SQLStatementContext getDDLStatementContext(final DDLStatement sqlStatement) {
if (sqlStatement instanceof CreateTableStatement) {
return new CreateTableStatementContext((CreateTableStatement) sqlStatement);
......@@ -138,6 +140,7 @@ public final class SQLStatementContextFactory {
return new CommonSQLStatementContext(sqlStatement);
}
@SuppressWarnings("unchecked")
private static SQLStatementContext getDCLStatementContext(final DCLStatement sqlStatement) {
if (sqlStatement instanceof GrantStatement) {
return new GrantStatementContext((GrantStatement) sqlStatement);
......@@ -151,6 +154,7 @@ public final class SQLStatementContextFactory {
return new CommonSQLStatementContext(sqlStatement);
}
@SuppressWarnings("unchecked")
private static SQLStatementContext getDALStatementContext(final DALStatement sqlStatement) {
if (sqlStatement instanceof DescribeStatement) {
return new DescribeStatementContext((DescribeStatement) sqlStatement);
......
......@@ -93,7 +93,7 @@ public final class ProjectionEngine {
}
private ExpressionProjection createProjection(final ExpressionProjectionSegment projectionSegment) {
return new ExpressionProjection(((ExpressionProjectionSegment) projectionSegment).getText(), projectionSegment.getAlias().orElse(null));
return new ExpressionProjection(projectionSegment.getText(), projectionSegment.getAlias().orElse(null));
}
private AggregationDistinctProjection createProjection(final String sql, final AggregationDistinctProjectionSegment projectionSegment) {
......
......@@ -33,16 +33,16 @@
<version>${project.version}</version>
<exclusions>
<exclusion>
<artifactId>shardingsphere-sql-parser-spi</artifactId>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-sql-parser-spi</artifactId>
</exclusion>
<exclusion>
<artifactId>shardingsphere-sql-parser-engine</artifactId>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-sql-parser-engine</artifactId>
</exclusion>
<exclusion>
<artifactId>shardingsphere-sql-parser-relation</artifactId>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-sql-parser-binder</artifactId>
</exclusion>
</exclusions>
</dependency>
......@@ -52,8 +52,8 @@
<version>${project.version}</version>
<exclusions>
<exclusion>
<artifactId>sharding-core-entry</artifactId>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>sharding-core-entry</artifactId>
</exclusion>
</exclusions>
</dependency>
......
......@@ -36,7 +36,7 @@
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-sql-parser-relation</artifactId>
<artifactId>shardingsphere-sql-parser-binder</artifactId>
<version>${project.version}</version>
</dependency>
......
......@@ -31,7 +31,7 @@
<dependencies>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-sql-parser-relation</artifactId>
<artifactId>shardingsphere-sql-parser-binder</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
......
......@@ -37,7 +37,7 @@
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-sql-parser-relation</artifactId>
<artifactId>shardingsphere-sql-parser-binder</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
......
......@@ -31,7 +31,7 @@
<dependencies>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-sql-parser-relation</artifactId>
<artifactId>shardingsphere-sql-parser-binder</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册