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

Rename RDL to DistSQL (#7964)

* Remove useless ShardingSphereVisitor.getter

* Rename RDLVisitor

* Rename RDL to DistSQL

* Rename RDL module name

* Rename RDL package name

* Rename RDL class name
上级 b0389897
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<modules> <modules>
<module>shardingsphere-sql-parser</module> <module>shardingsphere-sql-parser</module>
<module>shardingsphere-rdl-parser</module> <module>shardingsphere-distsql-parser</module>
<module>shardingsphere-db-protocol</module> <module>shardingsphere-db-protocol</module>
<module>shardingsphere-infra</module> <module>shardingsphere-infra</module>
......
...@@ -25,14 +25,14 @@ ...@@ -25,14 +25,14 @@
<artifactId>shardingsphere</artifactId> <artifactId>shardingsphere</artifactId>
<version>5.0.0-RC1-SNAPSHOT</version> <version>5.0.0-RC1-SNAPSHOT</version>
</parent> </parent>
<artifactId>shardingsphere-rdl-parser</artifactId> <artifactId>shardingsphere-distsql-parser</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>${project.artifactId}</name> <name>${project.artifactId}</name>
<modules> <modules>
<module>shardingsphere-rdl-parser-sql</module> <module>shardingsphere-distsql-parser-sql</module>
<module>shardingsphere-rdl-parser-statement</module> <module>shardingsphere-distsql-parser-statement</module>
<module>shardingsphere-rdl-parser-engine</module> <module>shardingsphere-distsql-parser-engine</module>
<module>shardingsphere-rdl-parser-binder</module> <module>shardingsphere-distsql-parser-binder</module>
</modules> </modules>
</project> </project>
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>org.apache.shardingsphere</groupId> <groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-rdl-parser</artifactId> <artifactId>shardingsphere-distsql-parser</artifactId>
<version>5.0.0-RC1-SNAPSHOT</version> <version>5.0.0-RC1-SNAPSHOT</version>
</parent> </parent>
<artifactId>shardingsphere-rdl-parser-binder</artifactId> <artifactId>shardingsphere-distsql-parser-binder</artifactId>
<name>${project.artifactId}</name> <name>${project.artifactId}</name>
<dependencies> <dependencies>
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.shardingsphere</groupId> <groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-rdl-parser-statement</artifactId> <artifactId>shardingsphere-distsql-parser-statement</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
......
...@@ -15,13 +15,13 @@ ...@@ -15,13 +15,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.shardingsphere.rdl.parser.binder.context; package org.apache.shardingsphere.distsql.parser.binder.context;
import lombok.Getter; import lombok.Getter;
import org.apache.shardingsphere.infra.database.type.DatabaseType; import org.apache.shardingsphere.infra.database.type.DatabaseType;
import org.apache.shardingsphere.rdl.parser.binder.util.DataSourceConnectionUrlUtil; import org.apache.shardingsphere.distsql.parser.binder.util.DataSourceConnectionUrlUtil;
import org.apache.shardingsphere.rdl.parser.statement.rdl.CreateDataSourcesStatement; import org.apache.shardingsphere.distsql.parser.statement.rdl.CreateDataSourcesStatement;
import org.apache.shardingsphere.rdl.parser.statement.rdl.DataSourceConnectionSegment; import org.apache.shardingsphere.distsql.parser.statement.rdl.DataSourceConnectionSegment;
import org.apache.shardingsphere.infra.binder.statement.CommonSQLStatementContext; import org.apache.shardingsphere.infra.binder.statement.CommonSQLStatementContext;
/** /**
...@@ -38,10 +38,10 @@ public final class CreateDataSourcesStatementContext extends CommonSQLStatementC ...@@ -38,10 +38,10 @@ public final class CreateDataSourcesStatementContext extends CommonSQLStatementC
} }
/** /**
* Get url. * Get URL.
* *
* @param segment segment * @param segment segment
* @return url * @return URL
*/ */
public String getUrl(final DataSourceConnectionSegment segment) { public String getUrl(final DataSourceConnectionSegment segment) {
return DataSourceConnectionUrlUtil.getUrl(segment, databaseType); return DataSourceConnectionUrlUtil.getUrl(segment, databaseType);
......
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.shardingsphere.rdl.parser.binder.context; package org.apache.shardingsphere.distsql.parser.binder.context;
import org.apache.shardingsphere.rdl.parser.binder.util.ShardingAlgorithmPropertiesUtil; import org.apache.shardingsphere.distsql.parser.binder.util.ShardingAlgorithmPropertiesUtil;
import org.apache.shardingsphere.rdl.parser.statement.rdl.CreateShardingRuleStatement; import org.apache.shardingsphere.distsql.parser.statement.rdl.CreateShardingRuleStatement;
import org.apache.shardingsphere.rdl.parser.statement.rdl.TableRuleSegment; import org.apache.shardingsphere.distsql.parser.statement.rdl.TableRuleSegment;
import org.apache.shardingsphere.infra.binder.statement.CommonSQLStatementContext; import org.apache.shardingsphere.infra.binder.statement.CommonSQLStatementContext;
import java.util.Properties; import java.util.Properties;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.shardingsphere.rdl.parser.binder.generator; package org.apache.shardingsphere.distsql.parser.binder.generator;
import org.apache.shardingsphere.infra.binder.statement.SQLStatementContext; import org.apache.shardingsphere.infra.binder.statement.SQLStatementContext;
......
...@@ -15,13 +15,13 @@ ...@@ -15,13 +15,13 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.shardingsphere.rdl.parser.binder.util; package org.apache.shardingsphere.distsql.parser.binder.util;
import lombok.AccessLevel; import lombok.AccessLevel;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.apache.shardingsphere.infra.database.type.DatabaseType; import org.apache.shardingsphere.infra.database.type.DatabaseType;
import org.apache.shardingsphere.rdl.parser.statement.rdl.DataSourceConnectionSegment; import org.apache.shardingsphere.distsql.parser.statement.rdl.DataSourceConnectionSegment;
/** /**
* Data source connection url util. * Data source connection url util.
...@@ -30,11 +30,11 @@ import org.apache.shardingsphere.rdl.parser.statement.rdl.DataSourceConnectionSe ...@@ -30,11 +30,11 @@ import org.apache.shardingsphere.rdl.parser.statement.rdl.DataSourceConnectionSe
public final class DataSourceConnectionUrlUtil { public final class DataSourceConnectionUrlUtil {
/** /**
* Get url. * Get URL.
* *
* @param connectionSegment connection segment * @param connectionSegment connection segment
* @param databaseType database type * @param databaseType database type
* @return url * @return URL
*/ */
public static String getUrl(final DataSourceConnectionSegment connectionSegment, final DatabaseType databaseType) { public static String getUrl(final DataSourceConnectionSegment connectionSegment, final DatabaseType databaseType) {
return getUrl(connectionSegment, databaseType.getJdbcUrlPrefixes().iterator().next()); return getUrl(connectionSegment, databaseType.getJdbcUrlPrefixes().iterator().next());
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.shardingsphere.rdl.parser.binder.util; package org.apache.shardingsphere.distsql.parser.binder.util;
import com.google.common.base.Preconditions; import com.google.common.base.Preconditions;
import lombok.AccessLevel; import lombok.AccessLevel;
......
...@@ -15,14 +15,14 @@ ...@@ -15,14 +15,14 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.shardingsphere.rdl.parser.binder.util; package org.apache.shardingsphere.distsql.parser.binder.util;
import org.apache.shardingsphere.infra.database.type.dialect.MariaDBDatabaseType; import org.apache.shardingsphere.infra.database.type.dialect.MariaDBDatabaseType;
import org.apache.shardingsphere.infra.database.type.dialect.MySQLDatabaseType; import org.apache.shardingsphere.infra.database.type.dialect.MySQLDatabaseType;
import org.apache.shardingsphere.infra.database.type.dialect.OracleDatabaseType; import org.apache.shardingsphere.infra.database.type.dialect.OracleDatabaseType;
import org.apache.shardingsphere.infra.database.type.dialect.PostgreSQLDatabaseType; import org.apache.shardingsphere.infra.database.type.dialect.PostgreSQLDatabaseType;
import org.apache.shardingsphere.infra.database.type.dialect.SQLServerDatabaseType; import org.apache.shardingsphere.infra.database.type.dialect.SQLServerDatabaseType;
import org.apache.shardingsphere.rdl.parser.statement.rdl.DataSourceConnectionSegment; import org.apache.shardingsphere.distsql.parser.statement.rdl.DataSourceConnectionSegment;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.mockito.junit.MockitoJUnitRunner; import org.mockito.junit.MockitoJUnitRunner;
......
...@@ -20,12 +20,12 @@ ...@@ -20,12 +20,12 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>shardingsphere-rdl-parser</artifactId> <artifactId>shardingsphere-distsql-parser</artifactId>
<groupId>org.apache.shardingsphere</groupId> <groupId>org.apache.shardingsphere</groupId>
<version>5.0.0-RC1-SNAPSHOT</version> <version>5.0.0-RC1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>shardingsphere-rdl-parser-engine</artifactId> <artifactId>shardingsphere-distsql-parser-engine</artifactId>
<dependencies> <dependencies>
<dependency> <dependency>
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.shardingsphere</groupId> <groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-rdl-parser-sql</artifactId> <artifactId>shardingsphere-distsql-parser-sql</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
......
...@@ -15,12 +15,12 @@ ...@@ -15,12 +15,12 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.shardingsphere.rdl.parser.engine; package org.apache.shardingsphere.distsql.parser.engine;
import org.apache.shardingsphere.distsql.parser.engine.engine.DistSQLStatementParserEngine;
import org.apache.shardingsphere.infra.parser.SQLStatementParserEngine; import org.apache.shardingsphere.infra.parser.SQLStatementParserEngine;
import org.apache.shardingsphere.infra.parser.standard.StandardSQLStatementParserEngine; import org.apache.shardingsphere.infra.parser.standard.StandardSQLStatementParserEngine;
import org.apache.shardingsphere.infra.parser.standard.StandardSQLStatementParserEngineFactory; import org.apache.shardingsphere.infra.parser.standard.StandardSQLStatementParserEngineFactory;
import org.apache.shardingsphere.rdl.parser.engine.engine.RDLSQLStatementParserEngine;
import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement; import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement;
/** /**
...@@ -30,11 +30,11 @@ public final class ShardingSphereSQLStatementParserEngine implements SQLStatemen ...@@ -30,11 +30,11 @@ public final class ShardingSphereSQLStatementParserEngine implements SQLStatemen
private final StandardSQLStatementParserEngine standardSQLStatementParserEngine; private final StandardSQLStatementParserEngine standardSQLStatementParserEngine;
private final RDLSQLStatementParserEngine rdlSQLStatementParserEngine; private final DistSQLStatementParserEngine distSQLStatementParserEngine;
public ShardingSphereSQLStatementParserEngine(final String databaseTypeName) { public ShardingSphereSQLStatementParserEngine(final String databaseTypeName) {
standardSQLStatementParserEngine = StandardSQLStatementParserEngineFactory.getSQLStatementParserEngine(databaseTypeName); standardSQLStatementParserEngine = StandardSQLStatementParserEngineFactory.getSQLStatementParserEngine(databaseTypeName);
rdlSQLStatementParserEngine = new RDLSQLStatementParserEngine(); distSQLStatementParserEngine = new DistSQLStatementParserEngine();
} }
@Override @Override
...@@ -45,7 +45,7 @@ public final class ShardingSphereSQLStatementParserEngine implements SQLStatemen ...@@ -45,7 +45,7 @@ public final class ShardingSphereSQLStatementParserEngine implements SQLStatemen
// CHECKSTYLE:OFF // CHECKSTYLE:OFF
} catch (final Exception ex) { } catch (final Exception ex) {
// CHECKSTYLE:ON // CHECKSTYLE:ON
result = rdlSQLStatementParserEngine.parse(sql, useCache); result = distSQLStatementParserEngine.parse(sql, useCache);
} }
return result; return result;
} }
......
...@@ -15,21 +15,21 @@ ...@@ -15,21 +15,21 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.shardingsphere.rdl.parser.engine.engine; package org.apache.shardingsphere.distsql.parser.engine.engine;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.antlr.v4.runtime.tree.ParseTree; import org.antlr.v4.runtime.tree.ParseTree;
import org.apache.shardingsphere.distsql.parser.engine.executor.DistSQLParserExecutor;
import org.apache.shardingsphere.infra.parser.SQLStatementParserEngine; import org.apache.shardingsphere.infra.parser.SQLStatementParserEngine;
import org.apache.shardingsphere.rdl.parser.engine.executor.RDLSQLParserExecutor; import org.apache.shardingsphere.distsql.parser.sql.visitor.DistSQLStatementVisitor;
import org.apache.shardingsphere.rdl.parser.sql.visitor.ShardingSphereVisitor;
import org.apache.shardingsphere.sql.parser.hook.ParsingHookRegistry; import org.apache.shardingsphere.sql.parser.hook.ParsingHookRegistry;
import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement; import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement;
/** /**
* RDL SQL statement parser engine. * Dist SQL statement parser engine.
*/ */
@RequiredArgsConstructor @RequiredArgsConstructor
public final class RDLSQLStatementParserEngine implements SQLStatementParserEngine { public final class DistSQLStatementParserEngine implements SQLStatementParserEngine {
private final ParsingHookRegistry parsingHookRegistry = ParsingHookRegistry.getInstance(); private final ParsingHookRegistry parsingHookRegistry = ParsingHookRegistry.getInstance();
...@@ -43,8 +43,8 @@ public final class RDLSQLStatementParserEngine implements SQLStatementParserEngi ...@@ -43,8 +43,8 @@ public final class RDLSQLStatementParserEngine implements SQLStatementParserEngi
public SQLStatement parse(final String sql, final boolean useCache) { public SQLStatement parse(final String sql, final boolean useCache) {
parsingHookRegistry.start(sql); parsingHookRegistry.start(sql);
try { try {
ParseTree parseTree = new RDLSQLParserExecutor(sql).execute().getRootNode(); ParseTree parseTree = new DistSQLParserExecutor(sql).execute().getRootNode();
SQLStatement result = (SQLStatement) new ShardingSphereVisitor().visit(parseTree); SQLStatement result = (SQLStatement) new DistSQLStatementVisitor().visit(parseTree);
parsingHookRegistry.finishSuccess(result); parsingHookRegistry.finishSuccess(result);
return result; return result;
// CHECKSTYLE:OFF // CHECKSTYLE:OFF
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.shardingsphere.rdl.parser.engine.executor; package org.apache.shardingsphere.distsql.parser.engine.executor;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.antlr.v4.runtime.BailErrorStrategy; import org.antlr.v4.runtime.BailErrorStrategy;
...@@ -28,8 +28,8 @@ import org.antlr.v4.runtime.Parser; ...@@ -28,8 +28,8 @@ import org.antlr.v4.runtime.Parser;
import org.antlr.v4.runtime.atn.PredictionMode; import org.antlr.v4.runtime.atn.PredictionMode;
import org.antlr.v4.runtime.misc.ParseCancellationException; import org.antlr.v4.runtime.misc.ParseCancellationException;
import org.antlr.v4.runtime.tree.ErrorNode; import org.antlr.v4.runtime.tree.ErrorNode;
import org.apache.shardingsphere.rdl.parser.autogen.ShardingSphereStatementLexer; import org.apache.shardingsphere.distsql.parser.autogen.DistSQLStatementLexer;
import org.apache.shardingsphere.rdl.parser.sql.parser.ShardingSphereParser; import org.apache.shardingsphere.distsql.parser.sql.parser.DistSQLParser;
import org.apache.shardingsphere.sql.parser.api.parser.SQLParser; import org.apache.shardingsphere.sql.parser.api.parser.SQLParser;
import org.apache.shardingsphere.sql.parser.core.parser.ParseASTNode; import org.apache.shardingsphere.sql.parser.core.parser.ParseASTNode;
import org.apache.shardingsphere.sql.parser.exception.SQLParsingException; import org.apache.shardingsphere.sql.parser.exception.SQLParsingException;
...@@ -37,10 +37,10 @@ import org.apache.shardingsphere.sql.parser.exception.SQLParsingException; ...@@ -37,10 +37,10 @@ import org.apache.shardingsphere.sql.parser.exception.SQLParsingException;
import java.nio.CharBuffer; import java.nio.CharBuffer;
/** /**
* RDL SQL parser executor. * Dist SQL parser executor.
*/ */
@RequiredArgsConstructor @RequiredArgsConstructor
public final class RDLSQLParserExecutor { public final class DistSQLParserExecutor {
private final String sql; private final String sql;
...@@ -74,7 +74,7 @@ public final class RDLSQLParserExecutor { ...@@ -74,7 +74,7 @@ public final class RDLSQLParserExecutor {
private SQLParser createSQLParser() { private SQLParser createSQLParser() {
CodePointBuffer buffer = CodePointBuffer.withChars(CharBuffer.wrap(sql.toCharArray())); CodePointBuffer buffer = CodePointBuffer.withChars(CharBuffer.wrap(sql.toCharArray()));
CodePointCharStream codePointCharStream = CodePointCharStream.fromBuffer(buffer); CodePointCharStream codePointCharStream = CodePointCharStream.fromBuffer(buffer);
Lexer lexer = new ShardingSphereStatementLexer(codePointCharStream); Lexer lexer = new DistSQLStatementLexer(codePointCharStream);
return new ShardingSphereParser(new CommonTokenStream(lexer)); return new DistSQLParser(new CommonTokenStream(lexer));
} }
} }
...@@ -20,12 +20,12 @@ ...@@ -20,12 +20,12 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>shardingsphere-rdl-parser</artifactId> <artifactId>shardingsphere-distsql-parser</artifactId>
<groupId>org.apache.shardingsphere</groupId> <groupId>org.apache.shardingsphere</groupId>
<version>5.0.0-RC1-SNAPSHOT</version> <version>5.0.0-RC1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>shardingsphere-rdl-parser-sql</artifactId> <artifactId>shardingsphere-distsql-parser-sql</artifactId>
<dependencies> <dependencies>
<dependency> <dependency>
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.shardingsphere</groupId> <groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-rdl-parser-statement</artifactId> <artifactId>shardingsphere-distsql-parser-statement</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
grammar ShardingSphereStatement; grammar DistSQLStatement;
import Symbol, RDLStatement; import Symbol, RDLStatement;
......
...@@ -15,20 +15,20 @@ ...@@ -15,20 +15,20 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.shardingsphere.rdl.parser.sql.parser; package org.apache.shardingsphere.distsql.parser.sql.parser;
import org.antlr.v4.runtime.TokenStream; import org.antlr.v4.runtime.TokenStream;
import org.apache.shardingsphere.rdl.parser.autogen.ShardingSphereStatementParser; import org.apache.shardingsphere.distsql.parser.autogen.DistSQLStatementParser;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.parser.SQLParser; import org.apache.shardingsphere.sql.parser.api.parser.SQLParser;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.core.parser.ParseASTNode; import org.apache.shardingsphere.sql.parser.core.parser.ParseASTNode;
/** /**
* SQL parser for RDL. * SQL parser for Dist SQL.
*/ */
public final class ShardingSphereParser extends ShardingSphereStatementParser implements SQLParser { public final class DistSQLParser extends DistSQLStatementParser implements SQLParser {
public ShardingSphereParser(final TokenStream input) { public DistSQLParser(final TokenStream input) {
super(input); super(input);
} }
......
...@@ -15,22 +15,20 @@ ...@@ -15,22 +15,20 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.shardingsphere.rdl.parser.sql.visitor; package org.apache.shardingsphere.distsql.parser.sql.visitor;
import lombok.AccessLevel; import org.apache.shardingsphere.distsql.parser.autogen.DistSQLStatementBaseVisitor;
import lombok.Getter; import org.apache.shardingsphere.distsql.parser.autogen.DistSQLStatementParser.CreateDataSourcesContext;
import org.apache.shardingsphere.rdl.parser.autogen.ShardingSphereStatementBaseVisitor; import org.apache.shardingsphere.distsql.parser.autogen.DistSQLStatementParser.CreateShardingRuleContext;
import org.apache.shardingsphere.rdl.parser.autogen.ShardingSphereStatementParser.CreateShardingRuleContext; import org.apache.shardingsphere.distsql.parser.autogen.DistSQLStatementParser.DataSourceContext;
import org.apache.shardingsphere.rdl.parser.autogen.ShardingSphereStatementParser.CreateDataSourcesContext; import org.apache.shardingsphere.distsql.parser.autogen.DistSQLStatementParser.DataSourceDefinitionContext;
import org.apache.shardingsphere.rdl.parser.autogen.ShardingSphereStatementParser.DataSourceContext; import org.apache.shardingsphere.distsql.parser.autogen.DistSQLStatementParser.StrategyPropContext;
import org.apache.shardingsphere.rdl.parser.autogen.ShardingSphereStatementParser.DataSourceDefinitionContext; import org.apache.shardingsphere.distsql.parser.autogen.DistSQLStatementParser.StrategyPropsContext;
import org.apache.shardingsphere.rdl.parser.autogen.ShardingSphereStatementParser.StrategyPropContext; import org.apache.shardingsphere.distsql.parser.autogen.DistSQLStatementParser.TableRuleContext;
import org.apache.shardingsphere.rdl.parser.autogen.ShardingSphereStatementParser.StrategyPropsContext; import org.apache.shardingsphere.distsql.parser.statement.rdl.CreateDataSourcesStatement;
import org.apache.shardingsphere.rdl.parser.autogen.ShardingSphereStatementParser.TableRuleContext; import org.apache.shardingsphere.distsql.parser.statement.rdl.CreateShardingRuleStatement;
import org.apache.shardingsphere.rdl.parser.statement.rdl.CreateDataSourcesStatement; import org.apache.shardingsphere.distsql.parser.statement.rdl.DataSourceConnectionSegment;
import org.apache.shardingsphere.rdl.parser.statement.rdl.CreateShardingRuleStatement; import org.apache.shardingsphere.distsql.parser.statement.rdl.TableRuleSegment;
import org.apache.shardingsphere.rdl.parser.statement.rdl.DataSourceConnectionSegment;
import org.apache.shardingsphere.rdl.parser.statement.rdl.TableRuleSegment;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode; import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.sql.common.value.collection.CollectionValue; import org.apache.shardingsphere.sql.parser.sql.common.value.collection.CollectionValue;
...@@ -38,10 +36,9 @@ import java.util.Collection; ...@@ -38,10 +36,9 @@ import java.util.Collection;
import java.util.LinkedList; import java.util.LinkedList;
/** /**
* ShardingSphere visitor. * Dist SQL statement visitor.
*/ */
@Getter(AccessLevel.PROTECTED) public final class DistSQLStatementVisitor extends DistSQLStatementBaseVisitor<ASTNode> {
public final class ShardingSphereVisitor extends ShardingSphereStatementBaseVisitor<ASTNode> {
@Override @Override
public ASTNode visitCreateDataSources(final CreateDataSourcesContext ctx) { public ASTNode visitCreateDataSources(final CreateDataSourcesContext ctx) {
......
...@@ -22,12 +22,12 @@ ...@@ -22,12 +22,12 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>org.apache.shardingsphere</groupId> <groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-rdl-parser</artifactId> <artifactId>shardingsphere-distsql-parser</artifactId>
<version>5.0.0-RC1-SNAPSHOT</version> <version>5.0.0-RC1-SNAPSHOT</version>
</parent> </parent>
<artifactId>shardingsphere-rdl-parser-statement</artifactId> <artifactId>shardingsphere-distsql-parser-statement</artifactId>
<name>${project.artifactId}</name> <name>${project.artifactId}</name>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.apache.shardingsphere</groupId> <groupId>org.apache.shardingsphere</groupId>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.shardingsphere.rdl.parser.statement.rdl; package org.apache.shardingsphere.distsql.parser.statement.rdl;
import lombok.Getter; import lombok.Getter;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.shardingsphere.rdl.parser.statement.rdl; package org.apache.shardingsphere.distsql.parser.statement.rdl;
import lombok.Getter; import lombok.Getter;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.shardingsphere.rdl.parser.statement.rdl; package org.apache.shardingsphere.distsql.parser.statement.rdl;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.shardingsphere.rdl.parser.statement.rdl; package org.apache.shardingsphere.distsql.parser.statement.rdl;
import org.apache.shardingsphere.sql.parser.sql.common.statement.AbstractSQLStatement; import org.apache.shardingsphere.sql.parser.sql.common.statement.AbstractSQLStatement;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
package org.apache.shardingsphere.rdl.parser.statement.rdl; package org.apache.shardingsphere.distsql.parser.statement.rdl;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.shardingsphere</groupId> <groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-rdl-parser-binder</artifactId> <artifactId>shardingsphere-distsql-parser-binder</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
......
...@@ -19,9 +19,9 @@ package org.apache.shardingsphere.sharding.convert; ...@@ -19,9 +19,9 @@ package org.apache.shardingsphere.sharding.convert;
import com.google.common.base.Joiner; import com.google.common.base.Joiner;
import org.apache.shardingsphere.infra.yaml.config.algorithm.YamlShardingSphereAlgorithmConfiguration; import org.apache.shardingsphere.infra.yaml.config.algorithm.YamlShardingSphereAlgorithmConfiguration;
import org.apache.shardingsphere.rdl.parser.binder.context.CreateShardingRuleStatementContext; import org.apache.shardingsphere.distsql.parser.binder.context.CreateShardingRuleStatementContext;
import org.apache.shardingsphere.rdl.parser.binder.generator.SQLStatementContextConverter; import org.apache.shardingsphere.distsql.parser.binder.generator.SQLStatementContextConverter;
import org.apache.shardingsphere.rdl.parser.statement.rdl.TableRuleSegment; import org.apache.shardingsphere.distsql.parser.statement.rdl.TableRuleSegment;
import org.apache.shardingsphere.sharding.yaml.config.YamlShardingRuleConfiguration; import org.apache.shardingsphere.sharding.yaml.config.YamlShardingRuleConfiguration;
import org.apache.shardingsphere.sharding.yaml.config.rule.YamlShardingAutoTableRuleConfiguration; import org.apache.shardingsphere.sharding.yaml.config.rule.YamlShardingAutoTableRuleConfiguration;
import org.apache.shardingsphere.sharding.yaml.config.strategy.sharding.YamlShardingStrategyConfiguration; import org.apache.shardingsphere.sharding.yaml.config.strategy.sharding.YamlShardingStrategyConfiguration;
......
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
package org.apache.shardingsphere.sharding.convert; package org.apache.shardingsphere.sharding.convert;
import org.apache.shardingsphere.rdl.parser.binder.context.CreateShardingRuleStatementContext; import org.apache.shardingsphere.distsql.parser.binder.context.CreateShardingRuleStatementContext;
import org.apache.shardingsphere.rdl.parser.statement.rdl.CreateShardingRuleStatement; import org.apache.shardingsphere.distsql.parser.statement.rdl.CreateShardingRuleStatement;
import org.apache.shardingsphere.rdl.parser.statement.rdl.TableRuleSegment; import org.apache.shardingsphere.distsql.parser.statement.rdl.TableRuleSegment;
import org.apache.shardingsphere.sharding.yaml.config.YamlShardingRuleConfiguration; import org.apache.shardingsphere.sharding.yaml.config.YamlShardingRuleConfiguration;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.shardingsphere</groupId> <groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-rdl-parser-engine</artifactId> <artifactId>shardingsphere-distsql-parser-engine</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
......
...@@ -58,7 +58,7 @@ import org.apache.shardingsphere.infra.merge.result.MergedResult; ...@@ -58,7 +58,7 @@ import org.apache.shardingsphere.infra.merge.result.MergedResult;
import org.apache.shardingsphere.infra.metadata.model.physical.model.schema.PhysicalSchemaMetaData; import org.apache.shardingsphere.infra.metadata.model.physical.model.schema.PhysicalSchemaMetaData;
import org.apache.shardingsphere.infra.rule.DataNodeRoutedRule; import org.apache.shardingsphere.infra.rule.DataNodeRoutedRule;
import org.apache.shardingsphere.infra.schema.ShardingSphereSchema; import org.apache.shardingsphere.infra.schema.ShardingSphereSchema;
import org.apache.shardingsphere.rdl.parser.engine.ShardingSphereSQLStatementParserEngine; import org.apache.shardingsphere.distsql.parser.engine.ShardingSphereSQLStatementParserEngine;
import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement; import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.dal.DALStatement; import org.apache.shardingsphere.sql.parser.sql.common.statement.dal.DALStatement;
......
...@@ -56,7 +56,7 @@ import org.apache.shardingsphere.infra.merge.result.MergedResult; ...@@ -56,7 +56,7 @@ import org.apache.shardingsphere.infra.merge.result.MergedResult;
import org.apache.shardingsphere.infra.metadata.model.physical.model.schema.PhysicalSchemaMetaData; import org.apache.shardingsphere.infra.metadata.model.physical.model.schema.PhysicalSchemaMetaData;
import org.apache.shardingsphere.infra.rule.DataNodeRoutedRule; import org.apache.shardingsphere.infra.rule.DataNodeRoutedRule;
import org.apache.shardingsphere.infra.schema.ShardingSphereSchema; import org.apache.shardingsphere.infra.schema.ShardingSphereSchema;
import org.apache.shardingsphere.rdl.parser.engine.ShardingSphereSQLStatementParserEngine; import org.apache.shardingsphere.distsql.parser.engine.ShardingSphereSQLStatementParserEngine;
import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement; import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.dal.DALStatement; import org.apache.shardingsphere.sql.parser.sql.common.statement.dal.DALStatement;
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.shardingsphere</groupId> <groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-rdl-parser-binder</artifactId> <artifactId>shardingsphere-distsql-parser-binder</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
......
...@@ -29,8 +29,8 @@ import org.apache.shardingsphere.proxy.backend.text.sctl.ShardingCTLBackendHandl ...@@ -29,8 +29,8 @@ import org.apache.shardingsphere.proxy.backend.text.sctl.ShardingCTLBackendHandl
import org.apache.shardingsphere.proxy.backend.text.sctl.utils.SCTLUtils; import org.apache.shardingsphere.proxy.backend.text.sctl.utils.SCTLUtils;
import org.apache.shardingsphere.proxy.backend.text.skip.SkipBackendHandler; import org.apache.shardingsphere.proxy.backend.text.skip.SkipBackendHandler;
import org.apache.shardingsphere.proxy.backend.text.transaction.TransactionBackendHandlerFactory; import org.apache.shardingsphere.proxy.backend.text.transaction.TransactionBackendHandlerFactory;
import org.apache.shardingsphere.rdl.parser.engine.ShardingSphereSQLStatementParserEngine; import org.apache.shardingsphere.distsql.parser.engine.ShardingSphereSQLStatementParserEngine;
import org.apache.shardingsphere.rdl.parser.statement.rdl.RDLStatement; import org.apache.shardingsphere.distsql.parser.statement.rdl.RDLStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement; import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.dal.DALStatement; import org.apache.shardingsphere.sql.parser.sql.common.statement.dal.DALStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.CreateDatabaseStatement; import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.CreateDatabaseStatement;
......
...@@ -37,10 +37,10 @@ import org.apache.shardingsphere.proxy.backend.text.TextProtocolBackendHandler; ...@@ -37,10 +37,10 @@ import org.apache.shardingsphere.proxy.backend.text.TextProtocolBackendHandler;
import org.apache.shardingsphere.proxy.config.util.DataSourceParameterConverter; import org.apache.shardingsphere.proxy.config.util.DataSourceParameterConverter;
import org.apache.shardingsphere.proxy.config.yaml.YamlDataSourceParameter; import org.apache.shardingsphere.proxy.config.yaml.YamlDataSourceParameter;
import org.apache.shardingsphere.proxy.convert.CreateDataSourcesStatementContextConverter; import org.apache.shardingsphere.proxy.convert.CreateDataSourcesStatementContextConverter;
import org.apache.shardingsphere.rdl.parser.binder.context.CreateDataSourcesStatementContext; import org.apache.shardingsphere.distsql.parser.binder.context.CreateDataSourcesStatementContext;
import org.apache.shardingsphere.rdl.parser.binder.context.CreateShardingRuleStatementContext; import org.apache.shardingsphere.distsql.parser.binder.context.CreateShardingRuleStatementContext;
import org.apache.shardingsphere.rdl.parser.statement.rdl.CreateDataSourcesStatement; import org.apache.shardingsphere.distsql.parser.statement.rdl.CreateDataSourcesStatement;
import org.apache.shardingsphere.rdl.parser.statement.rdl.CreateShardingRuleStatement; import org.apache.shardingsphere.distsql.parser.statement.rdl.CreateShardingRuleStatement;
import org.apache.shardingsphere.sharding.convert.CreateShardingRuleStatementContextConverter; import org.apache.shardingsphere.sharding.convert.CreateShardingRuleStatementContextConverter;
import org.apache.shardingsphere.sharding.yaml.config.YamlShardingRuleConfiguration; import org.apache.shardingsphere.sharding.yaml.config.YamlShardingRuleConfiguration;
import org.apache.shardingsphere.infra.binder.statement.SQLStatementContext; import org.apache.shardingsphere.infra.binder.statement.SQLStatementContext;
......
...@@ -36,7 +36,7 @@ import org.apache.shardingsphere.proxy.backend.response.query.QueryData; ...@@ -36,7 +36,7 @@ import org.apache.shardingsphere.proxy.backend.response.query.QueryData;
import org.apache.shardingsphere.proxy.backend.response.query.QueryResponse; import org.apache.shardingsphere.proxy.backend.response.query.QueryResponse;
import org.apache.shardingsphere.proxy.backend.text.TextProtocolBackendHandler; import org.apache.shardingsphere.proxy.backend.text.TextProtocolBackendHandler;
import org.apache.shardingsphere.proxy.backend.text.sctl.exception.InvalidShardingCTLFormatException; import org.apache.shardingsphere.proxy.backend.text.sctl.exception.InvalidShardingCTLFormatException;
import org.apache.shardingsphere.rdl.parser.engine.ShardingSphereSQLStatementParserEngine; import org.apache.shardingsphere.distsql.parser.engine.ShardingSphereSQLStatementParserEngine;
import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement; import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement;
import java.sql.Types; import java.sql.Types;
......
...@@ -30,8 +30,8 @@ import org.apache.shardingsphere.proxy.backend.context.ProxyContext; ...@@ -30,8 +30,8 @@ import org.apache.shardingsphere.proxy.backend.context.ProxyContext;
import org.apache.shardingsphere.proxy.backend.exception.DBCreateExistsException; import org.apache.shardingsphere.proxy.backend.exception.DBCreateExistsException;
import org.apache.shardingsphere.proxy.backend.response.BackendResponse; import org.apache.shardingsphere.proxy.backend.response.BackendResponse;
import org.apache.shardingsphere.proxy.backend.response.update.UpdateResponse; import org.apache.shardingsphere.proxy.backend.response.update.UpdateResponse;
import org.apache.shardingsphere.rdl.parser.statement.rdl.CreateDataSourcesStatement; import org.apache.shardingsphere.distsql.parser.statement.rdl.CreateDataSourcesStatement;
import org.apache.shardingsphere.rdl.parser.statement.rdl.CreateShardingRuleStatement; import org.apache.shardingsphere.distsql.parser.statement.rdl.CreateShardingRuleStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.CreateDatabaseStatement; import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.CreateDatabaseStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.DropDatabaseStatement; import org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.DropDatabaseStatement;
import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.ddl.MySQLCreateDatabaseStatement; import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.ddl.MySQLCreateDatabaseStatement;
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.shardingsphere</groupId> <groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-rdl-parser-binder</artifactId> <artifactId>shardingsphere-distsql-parser-binder</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
......
...@@ -19,9 +19,9 @@ package org.apache.shardingsphere.proxy.convert; ...@@ -19,9 +19,9 @@ package org.apache.shardingsphere.proxy.convert;
import org.apache.shardingsphere.infra.config.datasource.DataSourceParameter; import org.apache.shardingsphere.infra.config.datasource.DataSourceParameter;
import org.apache.shardingsphere.proxy.config.yaml.YamlDataSourceParameter; import org.apache.shardingsphere.proxy.config.yaml.YamlDataSourceParameter;
import org.apache.shardingsphere.rdl.parser.binder.context.CreateDataSourcesStatementContext; import org.apache.shardingsphere.distsql.parser.binder.context.CreateDataSourcesStatementContext;
import org.apache.shardingsphere.rdl.parser.binder.generator.SQLStatementContextConverter; import org.apache.shardingsphere.distsql.parser.binder.generator.SQLStatementContextConverter;
import org.apache.shardingsphere.rdl.parser.statement.rdl.DataSourceConnectionSegment; import org.apache.shardingsphere.distsql.parser.statement.rdl.DataSourceConnectionSegment;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.Map; import java.util.Map;
......
...@@ -19,9 +19,9 @@ package org.apache.shardingsphere.proxy.convert; ...@@ -19,9 +19,9 @@ package org.apache.shardingsphere.proxy.convert;
import org.apache.shardingsphere.infra.database.type.dialect.MySQLDatabaseType; import org.apache.shardingsphere.infra.database.type.dialect.MySQLDatabaseType;
import org.apache.shardingsphere.proxy.config.yaml.YamlDataSourceParameter; import org.apache.shardingsphere.proxy.config.yaml.YamlDataSourceParameter;
import org.apache.shardingsphere.rdl.parser.binder.context.CreateDataSourcesStatementContext; import org.apache.shardingsphere.distsql.parser.binder.context.CreateDataSourcesStatementContext;
import org.apache.shardingsphere.rdl.parser.statement.rdl.CreateDataSourcesStatement; import org.apache.shardingsphere.distsql.parser.statement.rdl.CreateDataSourcesStatement;
import org.apache.shardingsphere.rdl.parser.statement.rdl.DataSourceConnectionSegment; import org.apache.shardingsphere.distsql.parser.statement.rdl.DataSourceConnectionSegment;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
......
...@@ -36,7 +36,7 @@ import org.apache.shardingsphere.proxy.backend.response.update.UpdateResponse; ...@@ -36,7 +36,7 @@ import org.apache.shardingsphere.proxy.backend.response.update.UpdateResponse;
import org.apache.shardingsphere.proxy.frontend.command.executor.QueryCommandExecutor; import org.apache.shardingsphere.proxy.frontend.command.executor.QueryCommandExecutor;
import org.apache.shardingsphere.proxy.frontend.command.executor.ResponseType; import org.apache.shardingsphere.proxy.frontend.command.executor.ResponseType;
import org.apache.shardingsphere.proxy.frontend.mysql.command.query.builder.ResponsePacketBuilder; import org.apache.shardingsphere.proxy.frontend.mysql.command.query.builder.ResponsePacketBuilder;
import org.apache.shardingsphere.rdl.parser.engine.ShardingSphereSQLStatementParserEngine; import org.apache.shardingsphere.distsql.parser.engine.ShardingSphereSQLStatementParserEngine;
import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement; import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement;
import java.sql.SQLException; import java.sql.SQLException;
......
...@@ -29,7 +29,7 @@ import org.apache.shardingsphere.infra.database.type.DatabaseTypeRegistry; ...@@ -29,7 +29,7 @@ import org.apache.shardingsphere.infra.database.type.DatabaseTypeRegistry;
import org.apache.shardingsphere.proxy.backend.context.ProxyContext; import org.apache.shardingsphere.proxy.backend.context.ProxyContext;
import org.apache.shardingsphere.proxy.frontend.command.executor.CommandExecutor; import org.apache.shardingsphere.proxy.frontend.command.executor.CommandExecutor;
import org.apache.shardingsphere.proxy.frontend.exception.UnsupportedPreparedStatementException; import org.apache.shardingsphere.proxy.frontend.exception.UnsupportedPreparedStatementException;
import org.apache.shardingsphere.rdl.parser.engine.ShardingSphereSQLStatementParserEngine; import org.apache.shardingsphere.distsql.parser.engine.ShardingSphereSQLStatementParserEngine;
import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement; import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement;
import org.apache.shardingsphere.sql.parser.sql.common.statement.dml.SelectStatement; import org.apache.shardingsphere.sql.parser.sql.common.statement.dml.SelectStatement;
......
...@@ -28,7 +28,7 @@ import org.apache.shardingsphere.proxy.backend.communication.DatabaseCommunicati ...@@ -28,7 +28,7 @@ import org.apache.shardingsphere.proxy.backend.communication.DatabaseCommunicati
import org.apache.shardingsphere.proxy.backend.communication.jdbc.connection.BackendConnection; import org.apache.shardingsphere.proxy.backend.communication.jdbc.connection.BackendConnection;
import org.apache.shardingsphere.proxy.backend.context.ProxyContext; import org.apache.shardingsphere.proxy.backend.context.ProxyContext;
import org.apache.shardingsphere.proxy.frontend.command.executor.CommandExecutor; import org.apache.shardingsphere.proxy.frontend.command.executor.CommandExecutor;
import org.apache.shardingsphere.rdl.parser.engine.ShardingSphereSQLStatementParserEngine; import org.apache.shardingsphere.distsql.parser.engine.ShardingSphereSQLStatementParserEngine;
import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement; import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement;
import java.sql.SQLException; import java.sql.SQLException;
......
...@@ -43,7 +43,7 @@ import org.apache.shardingsphere.proxy.backend.response.query.QueryResponse; ...@@ -43,7 +43,7 @@ import org.apache.shardingsphere.proxy.backend.response.query.QueryResponse;
import org.apache.shardingsphere.proxy.backend.response.update.UpdateResponse; import org.apache.shardingsphere.proxy.backend.response.update.UpdateResponse;
import org.apache.shardingsphere.proxy.frontend.command.executor.QueryCommandExecutor; import org.apache.shardingsphere.proxy.frontend.command.executor.QueryCommandExecutor;
import org.apache.shardingsphere.proxy.frontend.command.executor.ResponseType; import org.apache.shardingsphere.proxy.frontend.command.executor.ResponseType;
import org.apache.shardingsphere.rdl.parser.engine.ShardingSphereSQLStatementParserEngine; import org.apache.shardingsphere.distsql.parser.engine.ShardingSphereSQLStatementParserEngine;
import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement; import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement;
import java.sql.ResultSetMetaData; import java.sql.ResultSetMetaData;
......
...@@ -26,7 +26,7 @@ import org.apache.shardingsphere.infra.database.type.DatabaseTypeRegistry; ...@@ -26,7 +26,7 @@ import org.apache.shardingsphere.infra.database.type.DatabaseTypeRegistry;
import org.apache.shardingsphere.proxy.backend.communication.jdbc.connection.BackendConnection; import org.apache.shardingsphere.proxy.backend.communication.jdbc.connection.BackendConnection;
import org.apache.shardingsphere.proxy.backend.context.ProxyContext; import org.apache.shardingsphere.proxy.backend.context.ProxyContext;
import org.apache.shardingsphere.proxy.frontend.command.executor.CommandExecutor; import org.apache.shardingsphere.proxy.frontend.command.executor.CommandExecutor;
import org.apache.shardingsphere.rdl.parser.engine.ShardingSphereSQLStatementParserEngine; import org.apache.shardingsphere.distsql.parser.engine.ShardingSphereSQLStatementParserEngine;
import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement; import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement;
import java.util.Collection; import java.util.Collection;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册