You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2025/05/29 16:38:58 UTC
(shardingsphere) branch master updated: Reuse standard SQLStatement and remove unnecessary MySQL SQLStatements (#35556)
This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 30e5fe53ad5 Reuse standard SQLStatement and remove unnecessary MySQL SQLStatements (#35556)
30e5fe53ad5 is described below
commit 30e5fe53ad5d8623f28dc0dfa7e2e476c3ba6366
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Fri May 30 00:38:52 2025 +0800
Reuse standard SQLStatement and remove unnecessary MySQL SQLStatements (#35556)
* Reuse standard SQLStatement and remove unnecessary MySQL SQLStatements
* Reuse standard SQLStatement and remove unnecessary MySQL SQLStatements
---
.../FederationMetaDataRefreshEngine.java | 17 +-
.../pushdown/PushDownMetaDataRefreshEngine.java | 15 +-
.../statement/type/MySQLDALStatementVisitor.java | 274 ++++++++++-----------
.../statement/type/MySQLDCLStatementVisitor.java | 34 +--
.../statement/type/MySQLDDLStatementVisitor.java | 116 ++++-----
.../statement/type/MySQLDMLStatementVisitor.java | 24 +-
.../statement/type/MySQLRLStatementVisitor.java | 22 +-
.../statement/type/MySQLTCLStatementVisitor.java | 36 +--
.../dal/MySQLAlterResourceGroupStatement.java | 27 --
.../mysql/dal/MySQLAnalyzeTableStatement.java | 27 --
.../mysql/dal/MySQLCacheIndexStatement.java | 27 --
.../mysql/dal/MySQLCheckTableStatement.java | 27 --
.../mysql/dal/MySQLChecksumTableStatement.java | 27 --
.../statement/mysql/dal/MySQLCloneStatement.java | 27 --
.../dal/MySQLCreateLoadableFunctionStatement.java | 27 --
.../dal/MySQLCreateResourceGroupStatement.java | 27 --
.../mysql/dal/MySQLDelimiterStatement.java | 27 --
.../mysql/dal/MySQLDropResourceGroupStatement.java | 27 --
.../statement/mysql/dal/MySQLFlushStatement.java | 27 --
.../statement/mysql/dal/MySQLHelpStatement.java | 27 --
.../mysql/dal/MySQLInstallComponentStatement.java | 27 --
.../mysql/dal/MySQLInstallPluginStatement.java | 27 --
.../statement/mysql/dal/MySQLKillStatement.java | 27 --
.../mysql/dal/MySQLLoadIndexInfoStatement.java | 27 --
.../mysql/dal/MySQLOptimizeTableStatement.java | 27 --
.../mysql/dal/MySQLRepairTableStatement.java | 27 --
.../statement/mysql/dal/MySQLResetStatement.java | 27 --
.../statement/mysql/dal/MySQLRestartStatement.java | 27 --
.../mysql/dal/MySQLSetResourceGroupStatement.java | 27 --
.../statement/mysql/dal/MySQLSetStatement.java | 27 --
.../mysql/dal/MySQLShowBinaryLogsStatement.java | 27 --
.../mysql/dal/MySQLShowBinlogEventsStatement.java | 27 --
.../mysql/dal/MySQLShowCharacterSetStatement.java | 27 --
.../mysql/dal/MySQLShowCollationStatement.java | 27 --
.../mysql/dal/MySQLShowColumnsStatement.java | 27 --
.../dal/MySQLShowCreateDatabaseStatement.java | 27 --
.../mysql/dal/MySQLShowCreateEventStatement.java | 27 --
.../dal/MySQLShowCreateFunctionStatement.java | 27 --
.../dal/MySQLShowCreateProcedureStatement.java | 27 --
.../mysql/dal/MySQLShowCreateTableStatement.java | 27 --
.../mysql/dal/MySQLShowCreateTriggerStatement.java | 27 --
.../mysql/dal/MySQLShowCreateUserStatement.java | 27 --
.../mysql/dal/MySQLShowCreateViewStatement.java | 27 --
.../mysql/dal/MySQLShowDatabasesStatement.java | 27 --
.../mysql/dal/MySQLShowEngineStatement.java | 27 --
.../mysql/dal/MySQLShowErrorsStatement.java | 27 --
.../mysql/dal/MySQLShowEventsStatement.java | 27 --
.../mysql/dal/MySQLShowFunctionCodeStatement.java | 27 --
.../dal/MySQLShowFunctionStatusStatement.java | 27 --
.../mysql/dal/MySQLShowGrantsStatement.java | 27 --
.../mysql/dal/MySQLShowIndexStatement.java | 27 --
.../mysql/dal/MySQLShowMasterStatusStatement.java | 27 --
.../mysql/dal/MySQLShowOpenTablesStatement.java | 27 --
.../mysql/dal/MySQLShowOtherStatement.java | 27 --
.../mysql/dal/MySQLShowPluginsStatement.java | 27 --
.../mysql/dal/MySQLShowPrivilegesStatement.java | 27 --
.../mysql/dal/MySQLShowProcedureCodeStatement.java | 27 --
.../dal/MySQLShowProcedureStatusStatement.java | 27 --
.../mysql/dal/MySQLShowProfileStatement.java | 27 --
.../mysql/dal/MySQLShowProfilesStatement.java | 27 --
.../dal/MySQLShowRelayLogEventsStatement.java | 27 --
.../mysql/dal/MySQLShowReplicaStatusStatement.java | 27 --
.../mysql/dal/MySQLShowReplicasStatement.java | 27 --
.../mysql/dal/MySQLShowSlaveHostsStatement.java | 27 --
.../mysql/dal/MySQLShowSlaveStatusStatement.java | 27 --
.../mysql/dal/MySQLShowStatusStatement.java | 27 --
.../mysql/dal/MySQLShowTableStatusStatement.java | 27 --
.../mysql/dal/MySQLShowTablesStatement.java | 27 --
.../mysql/dal/MySQLShowTriggersStatement.java | 27 --
.../mysql/dal/MySQLShowVariablesStatement.java | 27 --
.../mysql/dal/MySQLShowWarningsStatement.java | 27 --
.../mysql/dal/MySQLShutdownStatement.java | 27 --
.../dal/MySQLUninstallComponentStatement.java | 27 --
.../mysql/dal/MySQLUninstallPluginStatement.java | 27 --
.../statement/mysql/dal/MySQLUseStatement.java | 27 --
.../mysql/dcl/MySQLAlterUserStatement.java | 27 --
.../mysql/dcl/MySQLCreateRoleStatement.java | 27 --
.../mysql/dcl/MySQLDropRoleStatement.java | 27 --
.../mysql/dcl/MySQLDropUserStatement.java | 27 --
.../mysql/dcl/MySQLRenameUserStatement.java | 27 --
.../mysql/dcl/MySQLSetDefaultRoleStatement.java | 27 --
.../mysql/dcl/MySQLSetPasswordStatement.java | 27 --
.../statement/mysql/dcl/MySQLSetRoleStatement.java | 27 --
.../mysql/ddl/MySQLAlterDatabaseStatement.java | 27 --
.../mysql/ddl/MySQLAlterEventStatement.java | 27 --
.../mysql/ddl/MySQLAlterFunctionStatement.java | 27 --
.../mysql/ddl/MySQLAlterInstanceStatement.java | 27 --
.../mysql/ddl/MySQLAlterLogfileGroupStatement.java | 27 --
.../mysql/ddl/MySQLAlterProcedureStatement.java | 27 --
.../mysql/ddl/MySQLAlterServerStatement.java | 27 --
.../mysql/ddl/MySQLAlterTablespaceStatement.java | 27 --
.../mysql/ddl/MySQLCreateDatabaseStatement.java | 27 --
.../mysql/ddl/MySQLCreateEventStatement.java | 27 --
.../ddl/MySQLCreateLogfileGroupStatement.java | 27 --
.../mysql/ddl/MySQLCreateServerStatement.java | 27 --
.../mysql/ddl/MySQLCreateTablespaceStatement.java | 27 --
.../mysql/ddl/MySQLCreateTriggerStatement.java | 27 --
.../mysql/ddl/MySQLCreateViewStatement.java | 27 --
.../mysql/ddl/MySQLDeallocateStatement.java | 27 --
.../mysql/ddl/MySQLDropDatabaseStatement.java | 27 --
.../mysql/ddl/MySQLDropEventStatement.java | 27 --
.../mysql/ddl/MySQLDropFunctionStatement.java | 27 --
.../mysql/ddl/MySQLDropLogfileGroupStatement.java | 27 --
.../mysql/ddl/MySQLDropProcedureStatement.java | 27 --
.../mysql/ddl/MySQLDropServerStatement.java | 27 --
.../mysql/ddl/MySQLDropTablespaceStatement.java | 27 --
.../mysql/ddl/MySQLDropTriggerStatement.java | 27 --
.../statement/mysql/ddl/MySQLExecuteStatement.java | 27 --
.../statement/mysql/ddl/MySQLPrepareStatement.java | 27 --
.../mysql/ddl/MySQLRenameTableStatement.java | 27 --
.../mysql/ddl/MySQLTruncateStatement.java | 27 --
.../statement/mysql/dml/MySQLCallStatement.java | 27 --
.../statement/mysql/dml/MySQLDoStatement.java | 27 --
.../statement/mysql/dml/MySQLHandlerStatement.java | 27 --
.../statement/mysql/dml/MySQLImportStatement.java | 27 --
.../mysql/dml/MySQLLoadDataStatement.java | 27 --
.../statement/mysql/dml/MySQLLoadXMLStatement.java | 27 --
.../mysql/rl/MySQLChangeMasterStatement.java | 27 --
.../MySQLChangeReplicationSourceToStatement.java | 27 --
.../mysql/rl/MySQLStartReplicaStatement.java | 27 --
.../mysql/rl/MySQLStartSlaveStatement.java | 27 --
.../mysql/rl/MySQLStopSlaveStatement.java | 27 --
.../mysql/tcl/MySQLBeginTransactionStatement.java | 27 --
.../statement/mysql/tcl/MySQLCommitStatement.java | 27 --
.../statement/mysql/tcl/MySQLLockStatement.java | 27 --
.../mysql/tcl/MySQLReleaseSavepointStatement.java | 27 --
.../mysql/tcl/MySQLRollbackStatement.java | 27 --
.../mysql/tcl/MySQLSavepointStatement.java | 27 --
.../mysql/tcl/MySQLSetAutoCommitStatement.java | 27 --
.../mysql/tcl/MySQLSetTransactionStatement.java | 27 --
.../statement/mysql/tcl/MySQLUnlockStatement.java | 27 --
.../sane/MySQLDialectSaneQueryResultEngine.java | 8 +-
.../MySQLDialectSaneQueryResultEngineTest.java | 8 +-
.../admin/MySQLAdminExecutorCreatorTest.java | 30 +--
.../MySQLSetVariableAdminExecutorTest.java | 7 +-
.../executor/ShowCreateDatabaseExecutorTest.java | 4 +-
.../admin/executor/ShowDatabasesExecutorTest.java | 12 +-
.../executor/ShowFunctionStatusExecutorTest.java | 4 +-
.../executor/ShowProcedureStatusExecutorTest.java | 4 +-
.../admin/executor/ShowTablesExecutorTest.java | 16 +-
.../admin/executor/UseDatabaseExecutorTest.java | 6 +-
.../binary/prepare/MySQLComStmtPrepareChecker.java | 94 +++----
.../execute/MySQLComStmtExecuteExecutorTest.java | 6 +-
.../prepare/MySQLComStmtPrepareCheckerTest.java | 96 ++++----
144 files changed, 424 insertions(+), 3730 deletions(-)
diff --git a/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/refresher/federation/FederationMetaDataRefreshEngine.java b/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/refresher/federation/FederationMetaDataRefreshEngine.java
index 1ed8525e4c3..e2f4c43c8fe 100644
--- a/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/refresher/federation/FederationMetaDataRefreshEngine.java
+++ b/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/refresher/federation/FederationMetaDataRefreshEngine.java
@@ -24,6 +24,8 @@ import org.apache.shardingsphere.infra.spi.type.typed.TypedSPILoader;
import org.apache.shardingsphere.mode.metadata.refresher.util.SchemaRefreshUtils;
import org.apache.shardingsphere.mode.persist.service.MetaDataManagerPersistService;
+import java.util.Optional;
+
/**
* Federation meta data refresh engine.
*/
@@ -41,8 +43,7 @@ public final class FederationMetaDataRefreshEngine {
* @return is need refresh meta data or not
*/
public boolean isNeedRefresh(final SQLStatementContext sqlStatementContext) {
- Class<?> sqlStatementClass = sqlStatementContext.getSqlStatement().getClass().getSuperclass();
- return TypedSPILoader.findService(FederationMetaDataRefresher.class, sqlStatementClass).isPresent();
+ return findFederationMetaDataRefresher(sqlStatementContext).isPresent();
}
/**
@@ -52,8 +53,16 @@ public final class FederationMetaDataRefreshEngine {
*/
@SuppressWarnings("unchecked")
public void refresh(final SQLStatementContext sqlStatementContext) {
- Class<?> sqlStatementClass = sqlStatementContext.getSqlStatement().getClass().getSuperclass();
- TypedSPILoader.findService(FederationMetaDataRefresher.class, sqlStatementClass).ifPresent(optional -> optional.refresh(metaDataManagerPersistService,
+ findFederationMetaDataRefresher(sqlStatementContext).ifPresent(optional -> optional.refresh(metaDataManagerPersistService,
sqlStatementContext.getDatabaseType(), database, SchemaRefreshUtils.getSchemaName(database, sqlStatementContext), sqlStatementContext.getSqlStatement()));
}
+
+ @SuppressWarnings("rawtypes")
+ private Optional<FederationMetaDataRefresher> findFederationMetaDataRefresher(final SQLStatementContext sqlStatementContext) {
+ Optional<FederationMetaDataRefresher> refresher = TypedSPILoader.findService(FederationMetaDataRefresher.class, sqlStatementContext.getSqlStatement().getClass());
+ if (!refresher.isPresent()) {
+ refresher = TypedSPILoader.findService(FederationMetaDataRefresher.class, sqlStatementContext.getSqlStatement().getClass().getSuperclass());
+ }
+ return refresher;
+ }
}
diff --git a/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/refresher/pushdown/PushDownMetaDataRefreshEngine.java b/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/refresher/pushdown/PushDownMetaDataRefreshEngine.java
index a82dc7151ce..710365be011 100644
--- a/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/refresher/pushdown/PushDownMetaDataRefreshEngine.java
+++ b/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/refresher/pushdown/PushDownMetaDataRefreshEngine.java
@@ -54,8 +54,7 @@ public final class PushDownMetaDataRefreshEngine {
* @return is need refresh meta data or not
*/
public boolean isNeedRefresh(final SQLStatementContext sqlStatementContext) {
- Class<?> sqlStatementClass = sqlStatementContext.getSqlStatement().getClass().getSuperclass();
- return TypedSPILoader.findService(PushDownMetaDataRefresher.class, sqlStatementClass).isPresent();
+ return findPushDownMetaDataRefresher(sqlStatementContext).isPresent();
}
/**
@@ -67,8 +66,7 @@ public final class PushDownMetaDataRefreshEngine {
*/
@SuppressWarnings({"unchecked", "rawtypes"})
public void refresh(final SQLStatementContext sqlStatementContext, final Collection<RouteUnit> routeUnits) throws SQLException {
- Class<?> sqlStatementClass = sqlStatementContext.getSqlStatement().getClass().getSuperclass();
- Optional<PushDownMetaDataRefresher> refresher = TypedSPILoader.findService(PushDownMetaDataRefresher.class, sqlStatementClass);
+ Optional<PushDownMetaDataRefresher> refresher = findPushDownMetaDataRefresher(sqlStatementContext);
if (!refresher.isPresent()) {
return;
}
@@ -79,4 +77,13 @@ public final class PushDownMetaDataRefreshEngine {
refresher.get().refresh(metaDataManagerPersistService, database, logicDataSourceNames.isEmpty() ? null : logicDataSourceNames.iterator().next(),
schemaName, databaseType, sqlStatementContext.getSqlStatement(), props);
}
+
+ @SuppressWarnings("rawtypes")
+ private Optional<PushDownMetaDataRefresher> findPushDownMetaDataRefresher(final SQLStatementContext sqlStatementContext) {
+ Optional<PushDownMetaDataRefresher> refresher = TypedSPILoader.findService(PushDownMetaDataRefresher.class, sqlStatementContext.getSqlStatement().getClass());
+ if (!refresher.isPresent()) {
+ refresher = TypedSPILoader.findService(PushDownMetaDataRefresher.class, sqlStatementContext.getSqlStatement().getClass().getSuperclass());
+ }
+ return refresher;
+ }
}
diff --git a/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLDALStatementVisitor.java b/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLDALStatementVisitor.java
index 1d1d2d5a741..796ed75cfbb 100644
--- a/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLDALStatementVisitor.java
+++ b/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLDALStatementVisitor.java
@@ -140,81 +140,81 @@ import org.apache.shardingsphere.sql.parser.statement.core.segment.dml.predicate
import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.DatabaseSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.table.SimpleTableSegment;
import org.apache.shardingsphere.sql.parser.statement.core.statement.SQLStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.AlterResourceGroupStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.AnalyzeTableStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.BinlogStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.CacheIndexStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.CheckTableStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ChecksumTableStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.CloneStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.CreateLoadableFunctionStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.CreateResourceGroupStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.DelimiterStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.DropResourceGroupStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.FlushStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.HelpStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.InstallComponentStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.InstallPluginStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.KillStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.LoadIndexInfoStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.OptimizeTableStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.RepairTableStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ResetPersistStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ResetStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.RestartStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.SetResourceGroupStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.SetStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowBinaryLogsStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowBinlogEventsStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCharacterSetStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCollationStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowColumnsStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateDatabaseStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateEventStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateFunctionStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateProcedureStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateTableStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateTriggerStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateUserStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateViewStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowDatabasesStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowEngineStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowErrorsStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowEventsStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowFunctionCodeStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowFunctionStatusStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowGrantsStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowIndexStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowMasterStatusStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowOpenTablesStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowOtherStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowPluginsStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowPrivilegesStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowProcedureCodeStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowProcedureStatusStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowProcessListStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowProfileStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowProfilesStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowRelayLogEventsStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowReplicaStatusStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowReplicasStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowSlaveHostsStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowSlaveStatusStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowStatusStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowTableStatusStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowTablesStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowTriggersStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowVariablesStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowWarningsStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShutdownStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.UninstallComponentStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.UninstallPluginStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.UseStatement;
import org.apache.shardingsphere.sql.parser.statement.core.value.collection.CollectionValue;
import org.apache.shardingsphere.sql.parser.statement.core.value.identifier.IdentifierValue;
import org.apache.shardingsphere.sql.parser.statement.core.value.literal.impl.NumberLiteralValue;
import org.apache.shardingsphere.sql.parser.statement.core.value.literal.impl.StringLiteralValue;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLAlterResourceGroupStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLAnalyzeTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLCacheIndexStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLCheckTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLChecksumTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLCloneStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLCreateLoadableFunctionStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLCreateResourceGroupStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLDelimiterStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLDropResourceGroupStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLExplainStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLFlushStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLHelpStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLInstallComponentStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLInstallPluginStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLKillStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLLoadIndexInfoStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLOptimizeTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLRepairTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLResetStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLRestartStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLSetResourceGroupStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLSetStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowBinaryLogsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowBinlogEventsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCharacterSetStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCollationStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowColumnsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateDatabaseStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateEventStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateFunctionStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateProcedureStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateTriggerStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateUserStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateViewStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowDatabasesStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowEngineStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowErrorsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowEventsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowFunctionCodeStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowFunctionStatusStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowGrantsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowIndexStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowMasterStatusStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowOpenTablesStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowOtherStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowPluginsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowPrivilegesStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowProcedureCodeStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowProcedureStatusStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowProfileStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowProfilesStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowRelayLogEventsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowReplicaStatusStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowReplicasStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowSlaveHostsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowSlaveStatusStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowStatusStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowTableStatusStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowTablesStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowTriggersStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowVariablesStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowWarningsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShutdownStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLUninstallComponentStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLUninstallPluginStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLUseStatement;
import java.util.Collection;
import java.util.LinkedList;
@@ -227,26 +227,26 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitUninstallPlugin(final UninstallPluginContext ctx) {
- MySQLUninstallPluginStatement result = new MySQLUninstallPluginStatement();
+ UninstallPluginStatement result = new UninstallPluginStatement();
result.setPluginName(((IdentifierValue) visit(ctx.pluginName())).getValue());
return result;
}
@Override
public ASTNode visitShowCreateDatabase(final ShowCreateDatabaseContext ctx) {
- MySQLShowCreateDatabaseStatement result = new MySQLShowCreateDatabaseStatement();
+ ShowCreateDatabaseStatement result = new ShowCreateDatabaseStatement();
result.setDatabaseName(((DatabaseSegment) visit(ctx.databaseName())).getIdentifier().getValue());
return result;
}
@Override
public ASTNode visitShowBinaryLogs(final ShowBinaryLogsContext ctx) {
- return new MySQLShowBinaryLogsStatement();
+ return new ShowBinaryLogsStatement();
}
@Override
public ASTNode visitShowStatus(final ShowStatusContext ctx) {
- MySQLShowStatusStatement result = new MySQLShowStatusStatement();
+ ShowStatusStatement result = new ShowStatusStatement();
if (null != ctx.showFilter()) {
result.setFilter((ShowFilterSegment) visit(ctx.showFilter()));
}
@@ -256,50 +256,50 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowCreateView(final ShowCreateViewContext ctx) {
- return new MySQLShowCreateViewStatement();
+ return new ShowCreateViewStatement();
}
@Override
public ASTNode visitShowEngines(final ShowEnginesContext ctx) {
- return new MySQLShowOtherStatement();
+ return new ShowOtherStatement();
}
@Override
public ASTNode visitShowEngine(final ShowEngineContext ctx) {
- MySQLShowEngineStatement result = new MySQLShowEngineStatement();
+ ShowEngineStatement result = new ShowEngineStatement();
result.setEngineName(ctx.engineRef().getText());
return result;
}
@Override
public ASTNode visitShowCharset(final ShowCharsetContext ctx) {
- return new MySQLShowOtherStatement();
+ return new ShowOtherStatement();
}
@Override
public ASTNode visitShowCreateEvent(final ShowCreateEventContext ctx) {
- MySQLShowCreateEventStatement result = new MySQLShowCreateEventStatement();
+ ShowCreateEventStatement result = new ShowCreateEventStatement();
result.setEventName(((IdentifierValue) visit(ctx.eventName())).getValue());
return result;
}
@Override
public ASTNode visitShowCreateFunction(final ShowCreateFunctionContext ctx) {
- MySQLShowCreateFunctionStatement result = new MySQLShowCreateFunctionStatement();
+ ShowCreateFunctionStatement result = new ShowCreateFunctionStatement();
result.setFunctionName(((FunctionSegment) visit(ctx.functionName())).getFunctionName());
return result;
}
@Override
public ASTNode visitShowCreateProcedure(final ShowCreateProcedureContext ctx) {
- MySQLShowCreateProcedureStatement result = new MySQLShowCreateProcedureStatement();
+ ShowCreateProcedureStatement result = new ShowCreateProcedureStatement();
result.setProcedureName(((IdentifierValue) visit(ctx.procedureName())).getValue());
return result;
}
@Override
public ASTNode visitShowBinlogEvents(final ShowBinlogEventsContext ctx) {
- MySQLShowBinlogEventsStatement result = new MySQLShowBinlogEventsStatement();
+ ShowBinlogEventsStatement result = new ShowBinlogEventsStatement();
if (null != ctx.logName()) {
result.setLogName(ctx.logName().getText());
}
@@ -311,7 +311,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowErrors(final ShowErrorsContext ctx) {
- MySQLShowErrorsStatement result = new MySQLShowErrorsStatement();
+ ShowErrorsStatement result = new ShowErrorsStatement();
if (null != ctx.limitClause()) {
result.setLimit((LimitSegment) visit(ctx.limitClause()));
}
@@ -320,7 +320,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowWarnings(final ShowWarningsContext ctx) {
- MySQLShowWarningsStatement result = new MySQLShowWarningsStatement();
+ ShowWarningsStatement result = new ShowWarningsStatement();
if (null != ctx.limitClause()) {
result.setLimit((LimitSegment) visit(ctx.limitClause()));
}
@@ -333,7 +333,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
if (null != persistContext) {
return visit(persistContext);
}
- MySQLResetStatement result = new MySQLResetStatement();
+ ResetStatement result = new ResetStatement();
for (ResetOptionContext each : ctx.resetOption()) {
if (null != each.MASTER() || null != each.SLAVE()) {
result.getOptions().add((ResetOptionSegment) visit(each));
@@ -382,13 +382,13 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowReplicas(final ShowReplicasContext ctx) {
- return new MySQLShowReplicasStatement();
+ return new ShowReplicasStatement();
}
@SuppressWarnings("unchecked")
@Override
public ASTNode visitRepairTable(final RepairTableContext ctx) {
- MySQLRepairTableStatement result = new MySQLRepairTableStatement();
+ RepairTableStatement result = new RepairTableStatement();
result.getTables().addAll(((CollectionValue<SimpleTableSegment>) visit(ctx.tableList())).getValue());
return result;
}
@@ -396,14 +396,14 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@SuppressWarnings("unchecked")
@Override
public ASTNode visitAnalyzeTable(final AnalyzeTableContext ctx) {
- MySQLAnalyzeTableStatement result = new MySQLAnalyzeTableStatement();
+ AnalyzeTableStatement result = new AnalyzeTableStatement();
result.getTables().addAll(((CollectionValue<SimpleTableSegment>) visit(ctx.tableList())).getValue());
return result;
}
@Override
public ASTNode visitCacheIndex(final CacheIndexContext ctx) {
- MySQLCacheIndexStatement result = new MySQLCacheIndexStatement();
+ CacheIndexStatement result = new CacheIndexStatement();
if (null != ctx.cacheTableIndexList()) {
for (CacheTableIndexListContext each : ctx.cacheTableIndexList()) {
result.getTableIndexes().add((CacheTableIndexSegment) visit(each));
@@ -448,7 +448,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitChecksumTable(final ChecksumTableContext ctx) {
- MySQLChecksumTableStatement result = new MySQLChecksumTableStatement();
+ ChecksumTableStatement result = new ChecksumTableStatement();
result.getTables().addAll(((CollectionValue<SimpleTableSegment>) visit(ctx.tableList())).getValue());
return result;
}
@@ -458,12 +458,12 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
if (null != ctx.tablesOption()) {
return visit(ctx.tablesOption());
}
- return new MySQLFlushStatement();
+ return new FlushStatement();
}
@Override
public ASTNode visitTablesOption(final TablesOptionContext ctx) {
- MySQLFlushStatement result = new MySQLFlushStatement();
+ FlushStatement result = new FlushStatement();
result.setFlushTable(true);
for (TableNameContext each : ctx.tableName()) {
result.getTables().add((SimpleTableSegment) visit(each));
@@ -473,7 +473,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitKill(final KillContext ctx) {
- MySQLKillStatement result = new MySQLKillStatement();
+ KillStatement result = new KillStatement();
if (null != ctx.AT_()) {
result.setProcessId(ctx.AT_().getText() + ctx.IDENTIFIER_().getText());
} else {
@@ -490,7 +490,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitLoadIndexInfo(final LoadIndexInfoContext ctx) {
- MySQLLoadIndexInfoStatement result = new MySQLLoadIndexInfoStatement();
+ LoadIndexInfoStatement result = new LoadIndexInfoStatement();
for (LoadTableIndexListContext each : ctx.loadTableIndexList()) {
result.getTableIndexes().add((LoadTableIndexSegment) visit(each));
}
@@ -513,14 +513,14 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitInstallPlugin(final InstallPluginContext ctx) {
- MySQLInstallPluginStatement result = new MySQLInstallPluginStatement();
+ InstallPluginStatement result = new InstallPluginStatement();
result.setPluginName(((IdentifierValue) visit(ctx.pluginName())).getValue());
return result;
}
@Override
public ASTNode visitClone(final CloneContext ctx) {
- MySQLCloneStatement result = new MySQLCloneStatement();
+ CloneStatement result = new CloneStatement();
result.setCloneActionSegment((CloneActionSegment) visit(ctx.cloneAction()));
return result;
}
@@ -549,14 +549,14 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@SuppressWarnings("unchecked")
@Override
public ASTNode visitOptimizeTable(final OptimizeTableContext ctx) {
- MySQLOptimizeTableStatement result = new MySQLOptimizeTableStatement();
+ OptimizeTableStatement result = new OptimizeTableStatement();
result.getTables().addAll(((CollectionValue<SimpleTableSegment>) visit(ctx.tableList())).getValue());
return result;
}
@Override
public ASTNode visitUse(final UseContext ctx) {
- MySQLUseStatement result = new MySQLUseStatement();
+ UseStatement result = new UseStatement();
result.setDatabase(((DatabaseSegment) visit(ctx.databaseName())).getIdentifier().getValue());
return result;
}
@@ -604,14 +604,14 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowProcedureCode(final ShowProcedureCodeContext ctx) {
- MySQLShowProcedureCodeStatement result = new MySQLShowProcedureCodeStatement();
+ ShowProcedureCodeStatement result = new ShowProcedureCodeStatement();
result.setFunction((FunctionSegment) visit(ctx.functionName()));
return result;
}
@Override
public ASTNode visitShowProfile(final ShowProfileContext ctx) {
- MySQLShowProfileStatement result = new MySQLShowProfileStatement();
+ ShowProfileStatement result = new ShowProfileStatement();
if (null != ctx.limitClause()) {
result.setLimit((LimitSegment) visit(ctx.limitClause()));
}
@@ -620,12 +620,12 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowProfiles(final ShowProfilesContext ctx) {
- return new MySQLShowProfilesStatement();
+ return new ShowProfilesStatement();
}
@Override
public ASTNode visitShowDatabases(final ShowDatabasesContext ctx) {
- MySQLShowDatabasesStatement result = new MySQLShowDatabasesStatement();
+ ShowDatabasesStatement result = new ShowDatabasesStatement();
if (null != ctx.showFilter()) {
result.setFilter((ShowFilterSegment) visit(ctx.showFilter()));
}
@@ -635,7 +635,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowEvents(final ShowEventsContext ctx) {
- MySQLShowEventsStatement result = new MySQLShowEventsStatement();
+ ShowEventsStatement result = new ShowEventsStatement();
if (null != ctx.fromDatabase()) {
result.setFromDatabase((FromDatabaseSegment) visit(ctx.fromDatabase()));
}
@@ -648,7 +648,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowTables(final ShowTablesContext ctx) {
- MySQLShowTablesStatement result = new MySQLShowTablesStatement();
+ ShowTablesStatement result = new ShowTablesStatement();
if (null != ctx.fromDatabase()) {
result.setFromDatabase((FromDatabaseSegment) visit(ctx.fromDatabase()));
}
@@ -662,7 +662,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowTriggers(final ShowTriggersContext ctx) {
- MySQLShowTriggersStatement result = new MySQLShowTriggersStatement();
+ ShowTriggersStatement result = new ShowTriggersStatement();
if (null != ctx.fromDatabase()) {
result.setFromDatabase((FromDatabaseSegment) visit(ctx.fromDatabase()));
}
@@ -680,7 +680,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowTableStatus(final ShowTableStatusContext ctx) {
- MySQLShowTableStatusStatement result = new MySQLShowTableStatusStatement();
+ ShowTableStatusStatement result = new ShowTableStatusStatement();
if (null != ctx.fromDatabase()) {
result.setFromDatabase((FromDatabaseSegment) visit(ctx.fromDatabase()));
}
@@ -693,7 +693,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowColumns(final ShowColumnsContext ctx) {
- MySQLShowColumnsStatement result = new MySQLShowColumnsStatement();
+ ShowColumnsStatement result = new ShowColumnsStatement();
if (null != ctx.fromTable()) {
result.setTable(((FromTableSegment) visit(ctx.fromTable())).getTable());
}
@@ -721,7 +721,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowIndex(final ShowIndexContext ctx) {
- MySQLShowIndexStatement result = new MySQLShowIndexStatement();
+ ShowIndexStatement result = new ShowIndexStatement();
if (null != ctx.fromDatabase()) {
result.setFromDatabase((FromDatabaseSegment) visit(ctx.fromDatabase()));
}
@@ -733,21 +733,21 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowCreateTable(final ShowCreateTableContext ctx) {
- MySQLShowCreateTableStatement result = new MySQLShowCreateTableStatement();
+ ShowCreateTableStatement result = new ShowCreateTableStatement();
result.setTable((SimpleTableSegment) visit(ctx.tableName()));
return result;
}
@Override
public ASTNode visitShowCreateTrigger(final ShowCreateTriggerContext ctx) {
- MySQLShowCreateTriggerStatement result = new MySQLShowCreateTriggerStatement();
+ ShowCreateTriggerStatement result = new ShowCreateTriggerStatement();
result.setName(((IdentifierValue) visit(ctx.triggerName())).getValue());
return result;
}
@Override
public ASTNode visitShowRelaylogEvent(final ShowRelaylogEventContext ctx) {
- MySQLShowRelayLogEventsStatement result = new MySQLShowRelayLogEventsStatement();
+ ShowRelayLogEventsStatement result = new ShowRelayLogEventsStatement();
if (null != ctx.logName()) {
result.setLogName(((StringLiteralValue) visit(ctx.logName().stringLiterals())).getValue());
}
@@ -762,29 +762,29 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowFunctionCode(final ShowFunctionCodeContext ctx) {
- MySQLShowFunctionCodeStatement result = new MySQLShowFunctionCodeStatement();
+ ShowFunctionCodeStatement result = new ShowFunctionCodeStatement();
result.setFunctionName(((FunctionSegment) visit(ctx.functionName())).getFunctionName());
return result;
}
@Override
public ASTNode visitShowGrants(final ShowGrantsContext ctx) {
- return new MySQLShowGrantsStatement();
+ return new ShowGrantsStatement();
}
@Override
public ASTNode visitShowMasterStatus(final ShowMasterStatusContext ctx) {
- return new MySQLShowMasterStatusStatement();
+ return new ShowMasterStatusStatement();
}
@Override
public ASTNode visitShowSlaveHosts(final ShowSlaveHostsContext ctx) {
- return new MySQLShowSlaveHostsStatement();
+ return new ShowSlaveHostsStatement();
}
@Override
public ASTNode visitShowReplicaStatus(final ShowReplicaStatusContext ctx) {
- MySQLShowReplicaStatusStatement result = new MySQLShowReplicaStatusStatement();
+ ShowReplicaStatusStatement result = new ShowReplicaStatusStatement();
if (null != ctx.channelName()) {
result.setChannel(((IdentifierValue) visit(ctx.channelName())).getValue());
}
@@ -793,7 +793,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowSlaveStatus(final ShowSlaveStatusContext ctx) {
- MySQLShowSlaveStatusStatement result = new MySQLShowSlaveStatusStatement();
+ ShowSlaveStatusStatement result = new ShowSlaveStatusStatement();
if (null != ctx.channelName()) {
result.setChannel(((IdentifierValue) visit(ctx.channelName())).getValue());
}
@@ -802,7 +802,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitCreateResourceGroup(final CreateResourceGroupContext ctx) {
- MySQLCreateResourceGroupStatement result = new MySQLCreateResourceGroupStatement();
+ CreateResourceGroupStatement result = new CreateResourceGroupStatement();
result.setGroupName(((IdentifierValue) visit(ctx.groupName())).getValue());
return result;
}
@@ -821,7 +821,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowVariables(final ShowVariablesContext ctx) {
- MySQLShowVariablesStatement result = new MySQLShowVariablesStatement();
+ ShowVariablesStatement result = new ShowVariablesStatement();
if (null != ctx.showFilter()) {
result.setFilter((ShowFilterSegment) visit(ctx.showFilter()));
}
@@ -831,7 +831,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowCharacterSet(final ShowCharacterSetContext ctx) {
- MySQLShowCharacterSetStatement result = new MySQLShowCharacterSetStatement();
+ ShowCharacterSetStatement result = new ShowCharacterSetStatement();
if (null != ctx.showFilter()) {
result.setFilter((ShowFilterSegment) visit(ctx.showFilter()));
}
@@ -841,7 +841,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowCollation(final ShowCollationContext ctx) {
- MySQLShowCollationStatement result = new MySQLShowCollationStatement();
+ ShowCollationStatement result = new ShowCollationStatement();
if (null != ctx.showFilter()) {
result.setFilter((ShowFilterSegment) visit(ctx.showFilter()));
}
@@ -851,7 +851,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowFunctionStatus(final ShowFunctionStatusContext ctx) {
- MySQLShowFunctionStatusStatement result = new MySQLShowFunctionStatusStatement();
+ ShowFunctionStatusStatement result = new ShowFunctionStatusStatement();
if (null != ctx.showFilter()) {
result.setFilter((ShowFilterSegment) visit(ctx.showFilter()));
}
@@ -861,7 +861,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowProcedureStatus(final ShowProcedureStatusContext ctx) {
- MySQLShowProcedureStatusStatement result = new MySQLShowProcedureStatusStatement();
+ ShowProcedureStatusStatement result = new ShowProcedureStatusStatement();
if (null != ctx.showFilter()) {
result.setFilter((ShowFilterSegment) visit(ctx.showFilter()));
}
@@ -871,7 +871,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowOpenTables(final ShowOpenTablesContext ctx) {
- MySQLShowOpenTablesStatement result = new MySQLShowOpenTablesStatement();
+ ShowOpenTablesStatement result = new ShowOpenTablesStatement();
if (null != ctx.fromDatabase()) {
result.setFromDatabase((FromDatabaseSegment) visit(ctx.fromDatabase()));
}
@@ -884,17 +884,17 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowPlugins(final ShowPluginsContext ctx) {
- return new MySQLShowPluginsStatement();
+ return new ShowPluginsStatement();
}
@Override
public ASTNode visitShowPrivileges(final ShowPrivilegesContext ctx) {
- return new MySQLShowPrivilegesStatement();
+ return new ShowPrivilegesStatement();
}
@Override
public ASTNode visitShutdown(final ShutdownContext ctx) {
- return new MySQLShutdownStatement();
+ return new ShutdownStatement();
}
@Override
@@ -904,14 +904,14 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitShowCreateUser(final ShowCreateUserContext ctx) {
- MySQLShowCreateUserStatement result = new MySQLShowCreateUserStatement();
+ ShowCreateUserStatement result = new ShowCreateUserStatement();
result.setName(((IdentifierValue) visit(ctx.username())).getValue());
return result;
}
@Override
public ASTNode visitSetVariable(final SetVariableContext ctx) {
- MySQLSetStatement result = new MySQLSetStatement();
+ SetStatement result = new SetStatement();
Collection<VariableAssignSegment> variableAssigns = getVariableAssigns(ctx.optionValueList());
result.getVariableAssigns().addAll(variableAssigns);
return result;
@@ -988,7 +988,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
VariableSegment variable = new VariableSegment(startIndex, stopIndex, variableName);
String assignValue = (null == ctx.DEFAULT()) ? ctx.charsetName().getText() : ctx.DEFAULT().getText();
VariableAssignSegment characterSet = new VariableAssignSegment(startIndex, stopIndex, variable, assignValue);
- MySQLSetStatement result = new MySQLSetStatement();
+ SetStatement result = new SetStatement();
result.getVariableAssigns().add(characterSet);
return result;
}
@@ -1006,12 +1006,12 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitCreateLoadableFunction(final CreateLoadableFunctionContext ctx) {
- return new MySQLCreateLoadableFunctionStatement();
+ return new CreateLoadableFunctionStatement();
}
@Override
public ASTNode visitInstallComponent(final InstallComponentContext ctx) {
- MySQLInstallComponentStatement result = new MySQLInstallComponentStatement();
+ InstallComponentStatement result = new InstallComponentStatement();
List<String> components = new LinkedList<>();
for (ComponentNameContext each : ctx.componentName()) {
components.add(((StringLiteralValue) visit(each.string_())).getValue());
@@ -1022,7 +1022,7 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitUninstallComponent(final UninstallComponentContext ctx) {
- MySQLUninstallComponentStatement result = new MySQLUninstallComponentStatement();
+ UninstallComponentStatement result = new UninstallComponentStatement();
List<String> components = new LinkedList<>();
for (ComponentNameContext each : ctx.componentName()) {
components.add(((StringLiteralValue) visit(each.string_())).getValue());
@@ -1033,47 +1033,47 @@ public final class MySQLDALStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitRestart(final RestartContext ctx) {
- return new MySQLRestartStatement();
+ return new RestartStatement();
}
@Override
public ASTNode visitSetResourceGroup(final SetResourceGroupContext ctx) {
- MySQLSetResourceGroupStatement result = new MySQLSetResourceGroupStatement();
+ SetResourceGroupStatement result = new SetResourceGroupStatement();
result.setGroupName(((IdentifierValue) visit(ctx.groupName())).getValue());
return result;
}
@Override
public ASTNode visitCheckTable(final CheckTableContext ctx) {
- MySQLCheckTableStatement result = new MySQLCheckTableStatement();
+ CheckTableStatement result = new CheckTableStatement();
result.getTables().addAll(((CollectionValue<SimpleTableSegment>) visit(ctx.tableList())).getValue());
return result;
}
@Override
public ASTNode visitDropResourceGroup(final DropResourceGroupContext ctx) {
- MySQLDropResourceGroupStatement result = new MySQLDropResourceGroupStatement();
+ DropResourceGroupStatement result = new DropResourceGroupStatement();
result.setGroupName(((IdentifierValue) visit(ctx.groupName())).getValue());
return result;
}
@Override
public ASTNode visitAlterResourceGroup(final AlterResourceGroupContext ctx) {
- MySQLAlterResourceGroupStatement result = new MySQLAlterResourceGroupStatement();
+ AlterResourceGroupStatement result = new AlterResourceGroupStatement();
result.setGroupName(((IdentifierValue) visit(ctx.groupName())).getValue());
return result;
}
@Override
public ASTNode visitDelimiter(final DelimiterContext ctx) {
- MySQLDelimiterStatement result = new MySQLDelimiterStatement();
+ DelimiterStatement result = new DelimiterStatement();
result.setDelimiterName(ctx.delimiterName().getText());
return result;
}
@Override
public ASTNode visitHelp(final HelpContext ctx) {
- MySQLHelpStatement result = new MySQLHelpStatement();
+ HelpStatement result = new HelpStatement();
result.setSearchString(ctx.textOrIdentifier().getText());
return result;
}
diff --git a/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLDCLStatementVisitor.java b/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLDCLStatementVisitor.java
index d25bd3dae5f..7d91b4a2b45 100644
--- a/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLDCLStatementVisitor.java
+++ b/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLDCLStatementVisitor.java
@@ -34,8 +34,8 @@ import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.CreateU
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.DropRoleContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.DropUserContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.GrantIdentifierContext;
-import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.GrantLevelGlobalContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.GrantLevelDatabaseGlobalContext;
+import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.GrantLevelGlobalContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.GrantLevelTableContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.GrantProxyContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.GrantRoleOrPrivilegeOnToContext;
@@ -97,20 +97,20 @@ import org.apache.shardingsphere.sql.parser.statement.core.segment.dcl.TLSOption
import org.apache.shardingsphere.sql.parser.statement.core.segment.dcl.UserResourceSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.dcl.UserSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.GrantLevelSegment;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.AlterUserStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.CreateRoleStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.DropRoleStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.DropUserStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.RenameUserStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.SetDefaultRoleStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.SetPasswordStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.SetRoleStatement;
import org.apache.shardingsphere.sql.parser.statement.core.value.identifier.IdentifierValue;
import org.apache.shardingsphere.sql.parser.statement.core.value.literal.impl.NumberLiteralValue;
import org.apache.shardingsphere.sql.parser.statement.core.value.literal.impl.StringLiteralValue;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLAlterUserStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLCreateRoleStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLCreateUserStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLDropRoleStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLDropUserStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLGrantStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLRenameUserStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLRevokeStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLSetDefaultRoleStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLSetPasswordStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLSetRoleStatement;
import java.util.stream.Collectors;
@@ -702,43 +702,43 @@ public final class MySQLDCLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitDropUser(final DropUserContext ctx) {
- MySQLDropUserStatement result = new MySQLDropUserStatement();
+ DropUserStatement result = new DropUserStatement();
result.getUsers().addAll(ctx.username().stream().map(UsernameContext::getText).collect(Collectors.toList()));
return result;
}
@Override
public ASTNode visitAlterUser(final AlterUserContext ctx) {
- return new MySQLAlterUserStatement();
+ return new AlterUserStatement();
}
@Override
public ASTNode visitRenameUser(final RenameUserContext ctx) {
- return new MySQLRenameUserStatement();
+ return new RenameUserStatement();
}
@Override
public ASTNode visitCreateRole(final CreateRoleContext ctx) {
- return new MySQLCreateRoleStatement();
+ return new CreateRoleStatement();
}
@Override
public ASTNode visitDropRole(final DropRoleContext ctx) {
- return new MySQLDropRoleStatement();
+ return new DropRoleStatement();
}
@Override
public ASTNode visitSetDefaultRole(final SetDefaultRoleContext ctx) {
- return new MySQLSetDefaultRoleStatement();
+ return new SetDefaultRoleStatement();
}
@Override
public ASTNode visitSetRole(final SetRoleContext ctx) {
- return new MySQLSetRoleStatement();
+ return new SetRoleStatement();
}
@Override
public ASTNode visitSetPassword(final SetPasswordContext ctx) {
- return new MySQLSetPasswordStatement();
+ return new SetPasswordStatement();
}
}
diff --git a/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLDDLStatementVisitor.java b/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLDDLStatementVisitor.java
index 550b3e5afd7..7b99da46790 100644
--- a/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLDDLStatementVisitor.java
+++ b/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLDDLStatementVisitor.java
@@ -149,45 +149,45 @@ import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.DataT
import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.OwnerSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.table.SimpleTableSegment;
import org.apache.shardingsphere.sql.parser.statement.core.statement.SQLStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.AlterDatabaseStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.AlterEventStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.AlterFunctionStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.AlterInstanceStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.AlterLogfileGroupStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.AlterProcedureStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.AlterServerStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.AlterTablespaceStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateDatabaseStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateEventStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateLogfileGroupStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateServerStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateTablespaceStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateTriggerStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateViewStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DeallocateStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropDatabaseStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropEventStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropFunctionStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropLogfileGroupStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropProcedureStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropServerStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropTablespaceStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropTriggerStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.ExecuteStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.PrepareStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.RenameTableStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.TruncateStatement;
import org.apache.shardingsphere.sql.parser.statement.core.value.collection.CollectionValue;
import org.apache.shardingsphere.sql.parser.statement.core.value.identifier.IdentifierValue;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLAlterDatabaseStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLAlterEventStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLAlterFunctionStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLAlterInstanceStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLAlterLogfileGroupStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLAlterProcedureStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLAlterServerStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLAlterTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLAlterTablespaceStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLAlterViewStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLCreateDatabaseStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLCreateEventStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLCreateFunctionStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLCreateIndexStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLCreateLogfileGroupStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLCreateProcedureStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLCreateServerStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLCreateTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLCreateTablespaceStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLCreateTriggerStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLCreateViewStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDeallocateStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDropDatabaseStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDropEventStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDropFunctionStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDropIndexStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDropLogfileGroupStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDropProcedureStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDropServerStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDropTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDropTablespaceStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDropTriggerStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDropViewStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLExecuteStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLPrepareStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLRenameTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLTruncateStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLDeleteStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLInsertStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLSelectStatement;
@@ -206,7 +206,7 @@ public final class MySQLDDLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitCreateView(final CreateViewContext ctx) {
- MySQLCreateViewStatement result = new MySQLCreateViewStatement();
+ CreateViewStatement result = new CreateViewStatement();
result.setReplaceView(null != ctx.REPLACE());
result.setView((SimpleTableSegment) visit(ctx.viewName()));
result.setViewDefinition(getOriginalText(ctx.select()));
@@ -234,7 +234,7 @@ public final class MySQLDDLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitCreateDatabase(final CreateDatabaseContext ctx) {
- MySQLCreateDatabaseStatement result = new MySQLCreateDatabaseStatement();
+ CreateDatabaseStatement result = new CreateDatabaseStatement();
result.setDatabaseName(new IdentifierValue(ctx.databaseName().getText()).getValue());
result.setIfNotExists(null != ctx.ifNotExists());
return result;
@@ -242,12 +242,12 @@ public final class MySQLDDLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitAlterDatabase(final AlterDatabaseContext ctx) {
- return new MySQLAlterDatabaseStatement();
+ return new AlterDatabaseStatement();
}
@Override
public ASTNode visitDropDatabase(final DropDatabaseContext ctx) {
- MySQLDropDatabaseStatement result = new MySQLDropDatabaseStatement();
+ DropDatabaseStatement result = new DropDatabaseStatement();
result.setDatabaseName(new IdentifierValue(ctx.databaseName().getText()).getValue());
result.setIfExists(null != ctx.ifExists());
return result;
@@ -519,7 +519,7 @@ public final class MySQLDDLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitRenameTable(final RenameTableContext ctx) {
- MySQLRenameTableStatement result = new MySQLRenameTableStatement();
+ RenameTableStatement result = new RenameTableStatement();
for (int i = 0, len = ctx.tableName().size(); i < len; i += 2) {
TableNameContext tableName = ctx.tableName(i);
TableNameContext renameTableName = ctx.tableName(i + 1);
@@ -681,7 +681,7 @@ public final class MySQLDDLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitTruncateTable(final TruncateTableContext ctx) {
- MySQLTruncateStatement result = new MySQLTruncateStatement();
+ TruncateStatement result = new TruncateStatement();
result.getTables().add((SimpleTableSegment) visit(ctx.tableName()));
return result;
}
@@ -760,12 +760,12 @@ public final class MySQLDDLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitAlterProcedure(final AlterProcedureContext ctx) {
- return new MySQLAlterProcedureStatement();
+ return new AlterProcedureStatement();
}
@Override
public ASTNode visitDropProcedure(final DropProcedureContext ctx) {
- return new MySQLDropProcedureStatement();
+ return new DropProcedureStatement();
}
@Override
@@ -834,7 +834,7 @@ public final class MySQLDDLStatementVisitor extends MySQLStatementVisitor implem
} else if (null != ctx.dropTable()) {
sqlStatement = (MySQLDropTableStatement) visit(ctx.dropTable());
} else if (null != ctx.truncateTable()) {
- sqlStatement = (MySQLTruncateStatement) visit(ctx.truncateTable());
+ sqlStatement = (TruncateStatement) visit(ctx.truncateTable());
} else if (null != ctx.insert()) {
sqlStatement = (MySQLInsertStatement) visit(ctx.insert());
} else if (null != ctx.replace()) {
@@ -924,77 +924,77 @@ public final class MySQLDDLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitAlterFunction(final AlterFunctionContext ctx) {
- return new MySQLAlterFunctionStatement();
+ return new AlterFunctionStatement();
}
@Override
public ASTNode visitDropFunction(final DropFunctionContext ctx) {
- return new MySQLDropFunctionStatement();
+ return new DropFunctionStatement();
}
@Override
public ASTNode visitCreateEvent(final CreateEventContext ctx) {
- return new MySQLCreateEventStatement();
+ return new CreateEventStatement();
}
@Override
public ASTNode visitAlterEvent(final AlterEventContext ctx) {
- return new MySQLAlterEventStatement();
+ return new AlterEventStatement();
}
@Override
public ASTNode visitDropEvent(final DropEventContext ctx) {
- return new MySQLDropEventStatement();
+ return new DropEventStatement();
}
@Override
public ASTNode visitAlterInstance(final AlterInstanceContext ctx) {
- return new MySQLAlterInstanceStatement();
+ return new AlterInstanceStatement();
}
@Override
public ASTNode visitCreateLogfileGroup(final CreateLogfileGroupContext ctx) {
- return new MySQLCreateLogfileGroupStatement();
+ return new CreateLogfileGroupStatement();
}
@Override
public ASTNode visitAlterLogfileGroup(final AlterLogfileGroupContext ctx) {
- return new MySQLAlterLogfileGroupStatement();
+ return new AlterLogfileGroupStatement();
}
@Override
public ASTNode visitDropLogfileGroup(final DropLogfileGroupContext ctx) {
- return new MySQLDropLogfileGroupStatement();
+ return new DropLogfileGroupStatement();
}
@Override
public ASTNode visitCreateServer(final CreateServerContext ctx) {
- return new MySQLCreateServerStatement();
+ return new CreateServerStatement();
}
@Override
public ASTNode visitAlterServer(final AlterServerContext ctx) {
- return new MySQLAlterServerStatement();
+ return new AlterServerStatement();
}
@Override
public ASTNode visitDropServer(final DropServerContext ctx) {
- return new MySQLDropServerStatement();
+ return new DropServerStatement();
}
@Override
public ASTNode visitCreateTrigger(final CreateTriggerContext ctx) {
- return new MySQLCreateTriggerStatement();
+ return new CreateTriggerStatement();
}
@Override
public ASTNode visitDropTrigger(final DropTriggerContext ctx) {
- return new MySQLDropTriggerStatement();
+ return new DropTriggerStatement();
}
@Override
public ASTNode visitCreateTablespace(final CreateTablespaceContext ctx) {
- return new MySQLCreateTablespaceStatement();
+ return new CreateTablespaceStatement();
}
@Override
@@ -1008,7 +1008,7 @@ public final class MySQLDDLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitAlterTablespaceInnodb(final AlterTablespaceInnodbContext ctx) {
- MySQLAlterTablespaceStatement result = new MySQLAlterTablespaceStatement();
+ AlterTablespaceStatement result = new AlterTablespaceStatement();
if (null != ctx.tablespace) {
result.setTablespaceSegment(createTablespaceSegment(ctx.tablespace));
}
@@ -1020,7 +1020,7 @@ public final class MySQLDDLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitAlterTablespaceNdb(final AlterTablespaceNdbContext ctx) {
- MySQLAlterTablespaceStatement result = new MySQLAlterTablespaceStatement();
+ AlterTablespaceStatement result = new AlterTablespaceStatement();
if (null != ctx.tablespace) {
result.setTablespaceSegment(createTablespaceSegment(ctx.tablespace));
}
@@ -1036,21 +1036,21 @@ public final class MySQLDDLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitDropTablespace(final DropTablespaceContext ctx) {
- return new MySQLDropTablespaceStatement();
+ return new DropTablespaceStatement();
}
@Override
public ASTNode visitPrepare(final PrepareContext ctx) {
- return new MySQLPrepareStatement();
+ return new PrepareStatement();
}
@Override
public ASTNode visitExecuteStmt(final ExecuteStmtContext ctx) {
- return new MySQLExecuteStatement();
+ return new ExecuteStatement();
}
@Override
public ASTNode visitDeallocate(final DeallocateContext ctx) {
- return new MySQLDeallocateStatement();
+ return new DeallocateStatement();
}
}
diff --git a/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLDMLStatementVisitor.java b/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLDMLStatementVisitor.java
index d59a5070782..12dd5b93081 100644
--- a/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLDMLStatementVisitor.java
+++ b/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLDMLStatementVisitor.java
@@ -47,13 +47,13 @@ import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.Windo
import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.WindowSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.table.IndexHintSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.table.SimpleTableSegment;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.CallStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.DoStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.HandlerStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.ImportStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.LoadDataStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.LoadXMLStatement;
import org.apache.shardingsphere.sql.parser.statement.core.value.identifier.IdentifierValue;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLCallStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLDoStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLHandlerStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLImportStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLLoadDataStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLLoadXMLStatement;
import java.util.Collection;
import java.util.LinkedList;
@@ -67,7 +67,7 @@ public final class MySQLDMLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitCall(final CallContext ctx) {
- MySQLCallStatement result = new MySQLCallStatement();
+ CallStatement result = new CallStatement();
String procedureName = null == ctx.owner() ? ctx.identifier().getText() : ctx.owner().getText() + "." + ctx.identifier().getText();
result.setProcedureName(procedureName);
List<ExpressionSegment> params = ctx.expr().stream().map(each -> (ExpressionSegment) visit(each)).collect(Collectors.toList());
@@ -77,19 +77,19 @@ public final class MySQLDMLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitDoStatement(final DoStatementContext ctx) {
- MySQLDoStatement result = new MySQLDoStatement();
+ DoStatement result = new DoStatement();
result.getParameters().addAll(ctx.expr().stream().map(each -> (ExpressionSegment) visit(each)).collect(Collectors.toList()));
return result;
}
@Override
public ASTNode visitHandlerStatement(final HandlerStatementContext ctx) {
- return new MySQLHandlerStatement();
+ return new HandlerStatement();
}
@Override
public ASTNode visitImportStatement(final ImportStatementContext ctx) {
- return new MySQLImportStatement();
+ return new ImportStatement();
}
@Override
@@ -99,14 +99,14 @@ public final class MySQLDMLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitLoadDataStatement(final LoadDataStatementContext ctx) {
- MySQLLoadDataStatement result = new MySQLLoadDataStatement();
+ LoadDataStatement result = new LoadDataStatement();
result.setTableSegment((SimpleTableSegment) visit(ctx.tableName()));
return result;
}
@Override
public ASTNode visitLoadXmlStatement(final LoadXmlStatementContext ctx) {
- MySQLLoadXMLStatement result = new MySQLLoadXMLStatement();
+ LoadXMLStatement result = new LoadXMLStatement();
result.setTableSegment((SimpleTableSegment) visit(ctx.tableName()));
return result;
}
diff --git a/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLRLStatementVisitor.java b/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLRLStatementVisitor.java
index 483497be0dd..a9f7bc43937 100644
--- a/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLRLStatementVisitor.java
+++ b/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLRLStatementVisitor.java
@@ -20,16 +20,16 @@ package org.apache.shardingsphere.sql.parser.mysql.visitor.statement.type;
import org.apache.shardingsphere.sql.parser.api.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.type.RLStatementVisitor;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser;
-import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.ChangeReplicationSourceToContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.ChangeMasterToContext;
+import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.ChangeReplicationSourceToContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.StartSlaveContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.StopSlaveContext;
import org.apache.shardingsphere.sql.parser.mysql.visitor.statement.MySQLStatementVisitor;
-import org.apache.shardingsphere.sql.parser.statement.mysql.rl.MySQLChangeMasterStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.rl.MySQLChangeReplicationSourceToStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.rl.MySQLStartReplicaStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.rl.MySQLStartSlaveStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.rl.MySQLStopSlaveStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.rl.ChangeMasterStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.rl.ChangeReplicationSourceToStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.rl.StartReplicaStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.rl.StartSlaveStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.rl.StopSlaveStatement;
/**
* RL statement visitor for MySQL.
@@ -38,26 +38,26 @@ public final class MySQLRLStatementVisitor extends MySQLStatementVisitor impleme
@Override
public ASTNode visitChangeMasterTo(final ChangeMasterToContext ctx) {
- return new MySQLChangeMasterStatement();
+ return new ChangeMasterStatement();
}
@Override
public ASTNode visitStartSlave(final StartSlaveContext ctx) {
- return new MySQLStartSlaveStatement();
+ return new StartSlaveStatement();
}
@Override
public ASTNode visitStopSlave(final StopSlaveContext ctx) {
- return new MySQLStopSlaveStatement();
+ return new StopSlaveStatement();
}
@Override
public ASTNode visitChangeReplicationSourceTo(final ChangeReplicationSourceToContext ctx) {
- return new MySQLChangeReplicationSourceToStatement();
+ return new ChangeReplicationSourceToStatement();
}
@Override
public ASTNode visitStartReplica(final MySQLStatementParser.StartReplicaContext ctx) {
- return new MySQLStartReplicaStatement();
+ return new StartReplicaStatement();
}
}
diff --git a/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLTCLStatementVisitor.java b/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLTCLStatementVisitor.java
index 7f8f791a406..15d0362b1ad 100644
--- a/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLTCLStatementVisitor.java
+++ b/parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/type/MySQLTCLStatementVisitor.java
@@ -43,6 +43,15 @@ import org.apache.shardingsphere.sql.parser.statement.core.enums.TransactionIsol
import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.AliasSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.table.SimpleTableSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.tcl.AutoCommitSegment;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.BeginTransactionStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.CommitStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.LockStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.ReleaseSavepointStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.RollbackStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.SavepointStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.SetAutoCommitStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.SetTransactionStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.UnlockStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.xa.XABeginStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.xa.XACommitStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.xa.XAEndStatement;
@@ -50,15 +59,6 @@ import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.xa.XAPr
import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.xa.XARecoveryStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.xa.XARollbackStatement;
import org.apache.shardingsphere.sql.parser.statement.core.value.identifier.IdentifierValue;
-import org.apache.shardingsphere.sql.parser.statement.mysql.tcl.MySQLBeginTransactionStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.tcl.MySQLCommitStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.tcl.MySQLLockStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.tcl.MySQLReleaseSavepointStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.tcl.MySQLRollbackStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.tcl.MySQLSavepointStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.tcl.MySQLSetAutoCommitStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.tcl.MySQLSetTransactionStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.tcl.MySQLUnlockStatement;
import java.util.Collection;
import java.util.LinkedList;
@@ -71,7 +71,7 @@ public final class MySQLTCLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitSetTransaction(final SetTransactionContext ctx) {
- MySQLSetTransactionStatement result = new MySQLSetTransactionStatement();
+ SetTransactionStatement result = new SetTransactionStatement();
if (null != ctx.optionType()) {
OperationScope scope = null;
if (null != ctx.optionType().SESSION()) {
@@ -108,7 +108,7 @@ public final class MySQLTCLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitSetAutoCommit(final SetAutoCommitContext ctx) {
- MySQLSetAutoCommitStatement result = new MySQLSetAutoCommitStatement();
+ SetAutoCommitStatement result = new SetAutoCommitStatement();
result.setAutoCommit(generateAutoCommitSegment(ctx.autoCommitValue).isAutoCommit());
return result;
}
@@ -120,17 +120,17 @@ public final class MySQLTCLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitBeginTransaction(final BeginTransactionContext ctx) {
- return new MySQLBeginTransactionStatement();
+ return new BeginTransactionStatement();
}
@Override
public ASTNode visitCommit(final CommitContext ctx) {
- return new MySQLCommitStatement();
+ return new CommitStatement();
}
@Override
public ASTNode visitRollback(final RollbackContext ctx) {
- MySQLRollbackStatement result = new MySQLRollbackStatement();
+ RollbackStatement result = new RollbackStatement();
if (null != ctx.identifier()) {
result.setSavepointName(((IdentifierValue) visit(ctx.identifier())).getValue());
}
@@ -139,14 +139,14 @@ public final class MySQLTCLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitSavepoint(final SavepointContext ctx) {
- MySQLSavepointStatement result = new MySQLSavepointStatement();
+ SavepointStatement result = new SavepointStatement();
result.setSavepointName(((IdentifierValue) visit(ctx.identifier())).getValue());
return result;
}
@Override
public ASTNode visitReleaseSavepoint(final ReleaseSavepointContext ctx) {
- MySQLReleaseSavepointStatement result = new MySQLReleaseSavepointStatement();
+ ReleaseSavepointStatement result = new ReleaseSavepointStatement();
result.setSavepointName(((IdentifierValue) visit(ctx.identifier())).getValue());
return result;
}
@@ -183,7 +183,7 @@ public final class MySQLTCLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitLock(final LockContext ctx) {
- MySQLLockStatement result = new MySQLLockStatement();
+ LockStatement result = new LockStatement();
if (null != ctx.tableLock()) {
result.getTables().addAll(getLockTables(ctx.tableLock()));
}
@@ -204,6 +204,6 @@ public final class MySQLTCLStatementVisitor extends MySQLStatementVisitor implem
@Override
public ASTNode visitUnlock(final UnlockContext ctx) {
- return new MySQLUnlockStatement();
+ return new UnlockStatement();
}
}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLAlterResourceGroupStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLAlterResourceGroupStatement.java
deleted file mode 100644
index e4ca292b94b..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLAlterResourceGroupStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.AlterResourceGroupStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL alter resource group statement.
- */
-public final class MySQLAlterResourceGroupStatement extends AlterResourceGroupStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLAnalyzeTableStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLAnalyzeTableStatement.java
deleted file mode 100644
index 6dd6ef8e3cb..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLAnalyzeTableStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.AnalyzeTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL analyze table statement.
- */
-public final class MySQLAnalyzeTableStatement extends AnalyzeTableStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLCacheIndexStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLCacheIndexStatement.java
deleted file mode 100644
index 3eff932998e..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLCacheIndexStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.CacheIndexStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL cache index statement.
- */
-public final class MySQLCacheIndexStatement extends CacheIndexStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLCheckTableStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLCheckTableStatement.java
deleted file mode 100644
index 3981e7897c5..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLCheckTableStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.CheckTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL check table statement.
- */
-public final class MySQLCheckTableStatement extends CheckTableStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLChecksumTableStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLChecksumTableStatement.java
deleted file mode 100644
index 5c8ff9aa6c6..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLChecksumTableStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ChecksumTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL checksum table statement.
- */
-public final class MySQLChecksumTableStatement extends ChecksumTableStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLCloneStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLCloneStatement.java
deleted file mode 100644
index b5bd7a9dfb3..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLCloneStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.CloneStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL clone statement.
- */
-public final class MySQLCloneStatement extends CloneStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLCreateLoadableFunctionStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLCreateLoadableFunctionStatement.java
deleted file mode 100644
index eb7263a6cf6..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLCreateLoadableFunctionStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.CreateLoadableFunctionStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL create loadable function statement.
- */
-public final class MySQLCreateLoadableFunctionStatement extends CreateLoadableFunctionStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLCreateResourceGroupStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLCreateResourceGroupStatement.java
deleted file mode 100644
index e7a18f0de52..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLCreateResourceGroupStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.CreateResourceGroupStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL create resource group statement.
- */
-public final class MySQLCreateResourceGroupStatement extends CreateResourceGroupStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLDelimiterStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLDelimiterStatement.java
deleted file mode 100644
index 9d530c960bb..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLDelimiterStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.DelimiterStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL delimiter statement.
- */
-public final class MySQLDelimiterStatement extends DelimiterStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLDropResourceGroupStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLDropResourceGroupStatement.java
deleted file mode 100644
index 03c787e19ac..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLDropResourceGroupStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.DropResourceGroupStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL drop resource group statement.
- */
-public final class MySQLDropResourceGroupStatement extends DropResourceGroupStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLFlushStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLFlushStatement.java
deleted file mode 100644
index ffda3d50ffc..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLFlushStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.FlushStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL flush statement.
- */
-public final class MySQLFlushStatement extends FlushStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLHelpStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLHelpStatement.java
deleted file mode 100644
index 5c3058326f4..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLHelpStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.HelpStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL help statement.
- */
-public final class MySQLHelpStatement extends HelpStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLInstallComponentStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLInstallComponentStatement.java
deleted file mode 100644
index 0856d907729..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLInstallComponentStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.InstallComponentStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL install component statement.
- */
-public final class MySQLInstallComponentStatement extends InstallComponentStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLInstallPluginStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLInstallPluginStatement.java
deleted file mode 100644
index ab8e7378b49..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLInstallPluginStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.InstallPluginStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL install plugin statement.
- */
-public final class MySQLInstallPluginStatement extends InstallPluginStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLKillStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLKillStatement.java
deleted file mode 100644
index 63727068557..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLKillStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.KillStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL kill statement.
- */
-public final class MySQLKillStatement extends KillStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLLoadIndexInfoStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLLoadIndexInfoStatement.java
deleted file mode 100644
index 58631ecbefd..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLLoadIndexInfoStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.LoadIndexInfoStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL load index info statement.
- */
-public final class MySQLLoadIndexInfoStatement extends LoadIndexInfoStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLOptimizeTableStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLOptimizeTableStatement.java
deleted file mode 100644
index 672e4d4f282..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLOptimizeTableStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.OptimizeTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL optimize table statement.
- */
-public final class MySQLOptimizeTableStatement extends OptimizeTableStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLRepairTableStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLRepairTableStatement.java
deleted file mode 100644
index 7b5e49db05f..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLRepairTableStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.RepairTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL repair table statement.
- */
-public final class MySQLRepairTableStatement extends RepairTableStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLResetStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLResetStatement.java
deleted file mode 100644
index ab13835ce97..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLResetStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ResetStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL reset statement.
- */
-public final class MySQLResetStatement extends ResetStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLRestartStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLRestartStatement.java
deleted file mode 100644
index 4d9769affd7..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLRestartStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.RestartStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL restart statement.
- */
-public final class MySQLRestartStatement extends RestartStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLSetResourceGroupStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLSetResourceGroupStatement.java
deleted file mode 100644
index fb3d0903275..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLSetResourceGroupStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.SetResourceGroupStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL set resource group statement.
- */
-public final class MySQLSetResourceGroupStatement extends SetResourceGroupStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLSetStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLSetStatement.java
deleted file mode 100644
index 0d185167e1d..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLSetStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.SetStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL set statement.
- */
-public final class MySQLSetStatement extends SetStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowBinaryLogsStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowBinaryLogsStatement.java
deleted file mode 100644
index 78a78cd6fa3..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowBinaryLogsStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowBinaryLogsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show binary logs statement.
- */
-public final class MySQLShowBinaryLogsStatement extends ShowBinaryLogsStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowBinlogEventsStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowBinlogEventsStatement.java
deleted file mode 100644
index 8439a318ea6..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowBinlogEventsStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowBinlogEventsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show binlog events statement.
- */
-public final class MySQLShowBinlogEventsStatement extends ShowBinlogEventsStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCharacterSetStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCharacterSetStatement.java
deleted file mode 100644
index a45e58826cd..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCharacterSetStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCharacterSetStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show character set statement.
- */
-public final class MySQLShowCharacterSetStatement extends ShowCharacterSetStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCollationStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCollationStatement.java
deleted file mode 100644
index c1497f0f967..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCollationStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCollationStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show collation statement.
- */
-public final class MySQLShowCollationStatement extends ShowCollationStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowColumnsStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowColumnsStatement.java
deleted file mode 100644
index adc069175b2..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowColumnsStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowColumnsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show columns statement.
- */
-public final class MySQLShowColumnsStatement extends ShowColumnsStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateDatabaseStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateDatabaseStatement.java
deleted file mode 100644
index c0b6f607424..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateDatabaseStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateDatabaseStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show create database statement.
- */
-public final class MySQLShowCreateDatabaseStatement extends ShowCreateDatabaseStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateEventStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateEventStatement.java
deleted file mode 100644
index cf1af5c7e5d..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateEventStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateEventStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show create event statement.
- */
-public final class MySQLShowCreateEventStatement extends ShowCreateEventStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateFunctionStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateFunctionStatement.java
deleted file mode 100644
index 88ca18632e2..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateFunctionStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateFunctionStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show create function statement.
- */
-public final class MySQLShowCreateFunctionStatement extends ShowCreateFunctionStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateProcedureStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateProcedureStatement.java
deleted file mode 100644
index 4062aff35f4..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateProcedureStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateProcedureStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show create procedure statement.
- */
-public final class MySQLShowCreateProcedureStatement extends ShowCreateProcedureStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateTableStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateTableStatement.java
deleted file mode 100644
index c3787779eb1..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateTableStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show create table statement.
- */
-public final class MySQLShowCreateTableStatement extends ShowCreateTableStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateTriggerStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateTriggerStatement.java
deleted file mode 100644
index f3e86ddc92a..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateTriggerStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateTriggerStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show create trigger statement.
- */
-public final class MySQLShowCreateTriggerStatement extends ShowCreateTriggerStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateUserStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateUserStatement.java
deleted file mode 100644
index 3ed694b9d1c..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateUserStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateUserStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show create user statement.
- */
-public final class MySQLShowCreateUserStatement extends ShowCreateUserStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateViewStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateViewStatement.java
deleted file mode 100644
index d2717dd4dc1..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowCreateViewStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateViewStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show create view statement.
- */
-public final class MySQLShowCreateViewStatement extends ShowCreateViewStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowDatabasesStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowDatabasesStatement.java
deleted file mode 100644
index 257b4e4e8fc..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowDatabasesStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowDatabasesStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show databases statement.
- */
-public final class MySQLShowDatabasesStatement extends ShowDatabasesStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowEngineStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowEngineStatement.java
deleted file mode 100644
index 3354ffc8d9e..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowEngineStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowEngineStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show engine statement.
- */
-public final class MySQLShowEngineStatement extends ShowEngineStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowErrorsStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowErrorsStatement.java
deleted file mode 100644
index ab3240e5094..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowErrorsStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowErrorsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show errors statement.
- */
-public final class MySQLShowErrorsStatement extends ShowErrorsStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowEventsStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowEventsStatement.java
deleted file mode 100644
index 05a9529e566..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowEventsStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowEventsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show events statement.
- */
-public final class MySQLShowEventsStatement extends ShowEventsStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowFunctionCodeStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowFunctionCodeStatement.java
deleted file mode 100644
index 22e0b46a125..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowFunctionCodeStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowFunctionCodeStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show function code statement.
- */
-public final class MySQLShowFunctionCodeStatement extends ShowFunctionCodeStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowFunctionStatusStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowFunctionStatusStatement.java
deleted file mode 100644
index a243a382a2b..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowFunctionStatusStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowFunctionStatusStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show function status statement.
- */
-public final class MySQLShowFunctionStatusStatement extends ShowFunctionStatusStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowGrantsStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowGrantsStatement.java
deleted file mode 100644
index 2a019ff3efd..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowGrantsStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowGrantsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show grants statement.
- */
-public final class MySQLShowGrantsStatement extends ShowGrantsStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowIndexStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowIndexStatement.java
deleted file mode 100644
index 3b3d78ba613..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowIndexStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowIndexStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show index statement.
- */
-public final class MySQLShowIndexStatement extends ShowIndexStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowMasterStatusStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowMasterStatusStatement.java
deleted file mode 100644
index 6d35d4de2d1..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowMasterStatusStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowMasterStatusStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show master status statement.
- */
-public final class MySQLShowMasterStatusStatement extends ShowMasterStatusStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowOpenTablesStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowOpenTablesStatement.java
deleted file mode 100644
index 01d18a63c71..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowOpenTablesStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowOpenTablesStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show open tables statement.
- */
-public final class MySQLShowOpenTablesStatement extends ShowOpenTablesStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowOtherStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowOtherStatement.java
deleted file mode 100644
index b9a95fd5466..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowOtherStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowOtherStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show other statement.
- */
-public final class MySQLShowOtherStatement extends ShowOtherStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowPluginsStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowPluginsStatement.java
deleted file mode 100644
index 57d03e4a232..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowPluginsStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowPluginsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show plugins statement.
- */
-public final class MySQLShowPluginsStatement extends ShowPluginsStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowPrivilegesStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowPrivilegesStatement.java
deleted file mode 100644
index 032bab45f01..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowPrivilegesStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowPrivilegesStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show privileges statement.
- */
-public final class MySQLShowPrivilegesStatement extends ShowPrivilegesStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowProcedureCodeStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowProcedureCodeStatement.java
deleted file mode 100644
index 717f0e23588..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowProcedureCodeStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowProcedureCodeStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show procedure code statement.
- */
-public final class MySQLShowProcedureCodeStatement extends ShowProcedureCodeStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowProcedureStatusStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowProcedureStatusStatement.java
deleted file mode 100644
index 0e7bc3c36fa..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowProcedureStatusStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowProcedureStatusStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show procedure status statement.
- */
-public final class MySQLShowProcedureStatusStatement extends ShowProcedureStatusStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowProfileStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowProfileStatement.java
deleted file mode 100644
index 32af25e7c7e..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowProfileStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowProfileStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show profile statement.
- */
-public final class MySQLShowProfileStatement extends ShowProfileStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowProfilesStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowProfilesStatement.java
deleted file mode 100644
index 596aebbad56..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowProfilesStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowProfilesStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show profiles statement.
- */
-public final class MySQLShowProfilesStatement extends ShowProfilesStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowRelayLogEventsStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowRelayLogEventsStatement.java
deleted file mode 100644
index 156b129bc3e..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowRelayLogEventsStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowRelayLogEventsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show relay log events statement.
- */
-public final class MySQLShowRelayLogEventsStatement extends ShowRelayLogEventsStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowReplicaStatusStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowReplicaStatusStatement.java
deleted file mode 100644
index b75cb98af84..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowReplicaStatusStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowReplicaStatusStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show replica status statement.
- */
-public final class MySQLShowReplicaStatusStatement extends ShowReplicaStatusStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowReplicasStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowReplicasStatement.java
deleted file mode 100644
index 21df2f3ef66..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowReplicasStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowReplicasStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show replicas statement.
- */
-public final class MySQLShowReplicasStatement extends ShowReplicasStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowSlaveHostsStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowSlaveHostsStatement.java
deleted file mode 100644
index 200c37270bf..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowSlaveHostsStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowSlaveHostsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show slave hosts statement.
- */
-public final class MySQLShowSlaveHostsStatement extends ShowSlaveHostsStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowSlaveStatusStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowSlaveStatusStatement.java
deleted file mode 100644
index 3c5bc031844..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowSlaveStatusStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowSlaveStatusStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show slave status statement.
- */
-public final class MySQLShowSlaveStatusStatement extends ShowSlaveStatusStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowStatusStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowStatusStatement.java
deleted file mode 100644
index 9cfe4590264..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowStatusStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowStatusStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show status statement.
- */
-public final class MySQLShowStatusStatement extends ShowStatusStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowTableStatusStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowTableStatusStatement.java
deleted file mode 100644
index 9eb048612cd..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowTableStatusStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowTableStatusStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show table status statement.
- */
-public final class MySQLShowTableStatusStatement extends ShowTableStatusStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowTablesStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowTablesStatement.java
deleted file mode 100644
index 0d3ce42b977..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowTablesStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowTablesStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show tables statement.
- */
-public final class MySQLShowTablesStatement extends ShowTablesStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowTriggersStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowTriggersStatement.java
deleted file mode 100644
index d80427e4716..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowTriggersStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowTriggersStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show triggers status statement.
- */
-public final class MySQLShowTriggersStatement extends ShowTriggersStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowVariablesStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowVariablesStatement.java
deleted file mode 100644
index bda73999618..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowVariablesStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowVariablesStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show variables statement.
- */
-public final class MySQLShowVariablesStatement extends ShowVariablesStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowWarningsStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowWarningsStatement.java
deleted file mode 100644
index 8131059aa38..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShowWarningsStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowWarningsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL show warnings statement.
- */
-public final class MySQLShowWarningsStatement extends ShowWarningsStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShutdownStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShutdownStatement.java
deleted file mode 100644
index 148d5f9292c..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLShutdownStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShutdownStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL shutdown statement.
- */
-public final class MySQLShutdownStatement extends ShutdownStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLUninstallComponentStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLUninstallComponentStatement.java
deleted file mode 100644
index 6447d47f896..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLUninstallComponentStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.UninstallComponentStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL uninstall component statement.
- */
-public final class MySQLUninstallComponentStatement extends UninstallComponentStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLUninstallPluginStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLUninstallPluginStatement.java
deleted file mode 100644
index c34dbff8bb9..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLUninstallPluginStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.UninstallPluginStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL uninstall plugin statement.
- */
-public final class MySQLUninstallPluginStatement extends UninstallPluginStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLUseStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLUseStatement.java
deleted file mode 100644
index 49cef83f754..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dal/MySQLUseStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dal;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.UseStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * Use database statement for MySQL.
- */
-public final class MySQLUseStatement extends UseStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLAlterUserStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLAlterUserStatement.java
deleted file mode 100644
index a7a47e6ac3f..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLAlterUserStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dcl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.AlterUserStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL alter user statement.
- */
-public final class MySQLAlterUserStatement extends AlterUserStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLCreateRoleStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLCreateRoleStatement.java
deleted file mode 100644
index c03cdb594bd..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLCreateRoleStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dcl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.CreateRoleStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL create role statement.
- */
-public final class MySQLCreateRoleStatement extends CreateRoleStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLDropRoleStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLDropRoleStatement.java
deleted file mode 100644
index 24911588da2..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLDropRoleStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dcl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.DropRoleStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL drop role statement.
- */
-public final class MySQLDropRoleStatement extends DropRoleStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLDropUserStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLDropUserStatement.java
deleted file mode 100644
index 4be0eed81d4..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLDropUserStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dcl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.DropUserStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL drop user statement.
- */
-public final class MySQLDropUserStatement extends DropUserStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLRenameUserStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLRenameUserStatement.java
deleted file mode 100644
index 87aa2484756..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLRenameUserStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dcl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.RenameUserStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL rename user statement.
- */
-public final class MySQLRenameUserStatement extends RenameUserStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLSetDefaultRoleStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLSetDefaultRoleStatement.java
deleted file mode 100644
index 7e3026e60b9..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLSetDefaultRoleStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dcl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.SetDefaultRoleStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL set default role statement.
- */
-public final class MySQLSetDefaultRoleStatement extends SetDefaultRoleStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLSetPasswordStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLSetPasswordStatement.java
deleted file mode 100644
index 1db8f144a0c..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLSetPasswordStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dcl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.SetPasswordStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL set password statement.
- */
-public final class MySQLSetPasswordStatement extends SetPasswordStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLSetRoleStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLSetRoleStatement.java
deleted file mode 100644
index c87d17c6027..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dcl/MySQLSetRoleStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dcl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.SetRoleStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL set role statement.
- */
-public final class MySQLSetRoleStatement extends SetRoleStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterDatabaseStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterDatabaseStatement.java
deleted file mode 100644
index 6cc6c738a4e..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterDatabaseStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.AlterDatabaseStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL alter database statement.
- */
-public final class MySQLAlterDatabaseStatement extends AlterDatabaseStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterEventStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterEventStatement.java
deleted file mode 100644
index 8dc44f7ca1c..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterEventStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.AlterEventStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL alter event statement.
- */
-public final class MySQLAlterEventStatement extends AlterEventStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterFunctionStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterFunctionStatement.java
deleted file mode 100644
index 60f0d1157df..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterFunctionStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.AlterFunctionStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL alter function statement.
- */
-public final class MySQLAlterFunctionStatement extends AlterFunctionStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterInstanceStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterInstanceStatement.java
deleted file mode 100644
index 0c7f96ccc3b..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterInstanceStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.AlterInstanceStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL alter instance statement.
- */
-public final class MySQLAlterInstanceStatement extends AlterInstanceStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterLogfileGroupStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterLogfileGroupStatement.java
deleted file mode 100644
index ea3681b9dd9..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterLogfileGroupStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.AlterLogfileGroupStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL alter logfile group statement.
- */
-public final class MySQLAlterLogfileGroupStatement extends AlterLogfileGroupStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterProcedureStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterProcedureStatement.java
deleted file mode 100644
index 4fe175baaad..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterProcedureStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.AlterProcedureStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL alter procedure statement.
- */
-public final class MySQLAlterProcedureStatement extends AlterProcedureStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterServerStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterServerStatement.java
deleted file mode 100644
index 13fab6190fd..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterServerStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.AlterServerStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL alter server statement.
- */
-public final class MySQLAlterServerStatement extends AlterServerStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterTablespaceStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterTablespaceStatement.java
deleted file mode 100644
index 7cee4e53272..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLAlterTablespaceStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.AlterTablespaceStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL alter tablespace statement.
- */
-public final class MySQLAlterTablespaceStatement extends AlterTablespaceStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateDatabaseStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateDatabaseStatement.java
deleted file mode 100644
index e9e981e3ba4..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateDatabaseStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateDatabaseStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL create database statement.
- */
-public final class MySQLCreateDatabaseStatement extends CreateDatabaseStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateEventStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateEventStatement.java
deleted file mode 100644
index 3c814907c62..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateEventStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateEventStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL create event statement.
- */
-public final class MySQLCreateEventStatement extends CreateEventStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateLogfileGroupStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateLogfileGroupStatement.java
deleted file mode 100644
index 8afa8fdf112..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateLogfileGroupStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateLogfileGroupStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL create logfile group statement.
- */
-public final class MySQLCreateLogfileGroupStatement extends CreateLogfileGroupStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateServerStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateServerStatement.java
deleted file mode 100644
index 81b19170342..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateServerStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateServerStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL create server statement.
- */
-public final class MySQLCreateServerStatement extends CreateServerStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateTablespaceStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateTablespaceStatement.java
deleted file mode 100644
index fb545cddbf4..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateTablespaceStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateTablespaceStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL create tablespace statement.
- */
-public final class MySQLCreateTablespaceStatement extends CreateTablespaceStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateTriggerStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateTriggerStatement.java
deleted file mode 100644
index ae032629088..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateTriggerStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateTriggerStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL create trigger statement.
- */
-public final class MySQLCreateTriggerStatement extends CreateTriggerStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateViewStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateViewStatement.java
deleted file mode 100644
index fd46e7a0f42..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLCreateViewStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateViewStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL create view statement.
- */
-public final class MySQLCreateViewStatement extends CreateViewStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDeallocateStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDeallocateStatement.java
deleted file mode 100644
index 6ec0581b36e..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDeallocateStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DeallocateStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL deallocate statement.
- */
-public final class MySQLDeallocateStatement extends DeallocateStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropDatabaseStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropDatabaseStatement.java
deleted file mode 100644
index d793fd8c956..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropDatabaseStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropDatabaseStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL drop database statement.
- */
-public final class MySQLDropDatabaseStatement extends DropDatabaseStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropEventStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropEventStatement.java
deleted file mode 100644
index 9282f1dcd2f..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropEventStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropEventStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL drop event statement.
- */
-public final class MySQLDropEventStatement extends DropEventStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropFunctionStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropFunctionStatement.java
deleted file mode 100644
index 82722df62e5..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropFunctionStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropFunctionStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL drop function statement.
- */
-public final class MySQLDropFunctionStatement extends DropFunctionStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropLogfileGroupStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropLogfileGroupStatement.java
deleted file mode 100644
index f5f8e05fbdc..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropLogfileGroupStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropLogfileGroupStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL drop logfile group statement.
- */
-public final class MySQLDropLogfileGroupStatement extends DropLogfileGroupStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropProcedureStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropProcedureStatement.java
deleted file mode 100644
index e156f8b9f5f..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropProcedureStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropProcedureStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL drop procedure statement.
- */
-public final class MySQLDropProcedureStatement extends DropProcedureStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropServerStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropServerStatement.java
deleted file mode 100644
index 25bccdb0bb8..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropServerStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropServerStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL drop server statement.
- */
-public final class MySQLDropServerStatement extends DropServerStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropTablespaceStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropTablespaceStatement.java
deleted file mode 100644
index 41d7287af21..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropTablespaceStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropTablespaceStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL drop tablespace statement.
- */
-public final class MySQLDropTablespaceStatement extends DropTablespaceStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropTriggerStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropTriggerStatement.java
deleted file mode 100644
index 518fa87ee73..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLDropTriggerStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropTriggerStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL drop trigger statement.
- */
-public final class MySQLDropTriggerStatement extends DropTriggerStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLExecuteStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLExecuteStatement.java
deleted file mode 100644
index 9e3b0aa28e2..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLExecuteStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.ExecuteStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL execute statement.
- */
-public final class MySQLExecuteStatement extends ExecuteStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLPrepareStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLPrepareStatement.java
deleted file mode 100644
index bc7d7880a03..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLPrepareStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.PrepareStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL prepare statement.
- */
-public final class MySQLPrepareStatement extends PrepareStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLRenameTableStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLRenameTableStatement.java
deleted file mode 100644
index 140de05c753..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLRenameTableStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.RenameTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL rename table statement.
- */
-public final class MySQLRenameTableStatement extends RenameTableStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLTruncateStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLTruncateStatement.java
deleted file mode 100644
index f1d474b909d..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/ddl/MySQLTruncateStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.ddl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.TruncateStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL truncate table statement.
- */
-public final class MySQLTruncateStatement extends TruncateStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dml/MySQLCallStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dml/MySQLCallStatement.java
deleted file mode 100644
index eda8c1fe026..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dml/MySQLCallStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dml;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.CallStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL call statement.
- */
-public final class MySQLCallStatement extends CallStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dml/MySQLDoStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dml/MySQLDoStatement.java
deleted file mode 100644
index c8d6622021c..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dml/MySQLDoStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dml;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.DoStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL do statement.
- */
-public final class MySQLDoStatement extends DoStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dml/MySQLHandlerStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dml/MySQLHandlerStatement.java
deleted file mode 100644
index 09357c6200b..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dml/MySQLHandlerStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dml;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.HandlerStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL handler statement.
- */
-public final class MySQLHandlerStatement extends HandlerStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dml/MySQLImportStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dml/MySQLImportStatement.java
deleted file mode 100644
index f399af0b4ab..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dml/MySQLImportStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dml;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.ImportStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL import statement.
- */
-public final class MySQLImportStatement extends ImportStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dml/MySQLLoadDataStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dml/MySQLLoadDataStatement.java
deleted file mode 100644
index 065eb2acaac..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dml/MySQLLoadDataStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dml;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.LoadDataStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL load data statement.
- */
-public final class MySQLLoadDataStatement extends LoadDataStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dml/MySQLLoadXMLStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dml/MySQLLoadXMLStatement.java
deleted file mode 100644
index b8c68ff1efe..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/dml/MySQLLoadXMLStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.dml;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.LoadXMLStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL load xml statement.
- */
-public final class MySQLLoadXMLStatement extends LoadXMLStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/rl/MySQLChangeMasterStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/rl/MySQLChangeMasterStatement.java
deleted file mode 100644
index 0c432f651d3..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/rl/MySQLChangeMasterStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.rl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.rl.ChangeMasterStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL change master statement.
- */
-public final class MySQLChangeMasterStatement extends ChangeMasterStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/rl/MySQLChangeReplicationSourceToStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/rl/MySQLChangeReplicationSourceToStatement.java
deleted file mode 100644
index b098e2facef..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/rl/MySQLChangeReplicationSourceToStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.rl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.rl.ChangeReplicationSourceToStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL change replication source statement.
- */
-public final class MySQLChangeReplicationSourceToStatement extends ChangeReplicationSourceToStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/rl/MySQLStartReplicaStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/rl/MySQLStartReplicaStatement.java
deleted file mode 100644
index 1993301d6c7..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/rl/MySQLStartReplicaStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.rl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.rl.StartReplicaStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL start replica statement.
- */
-public final class MySQLStartReplicaStatement extends StartReplicaStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/rl/MySQLStartSlaveStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/rl/MySQLStartSlaveStatement.java
deleted file mode 100644
index 30bcfcbdd52..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/rl/MySQLStartSlaveStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.rl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.rl.StartSlaveStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL start slave statement.
- */
-public final class MySQLStartSlaveStatement extends StartSlaveStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/rl/MySQLStopSlaveStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/rl/MySQLStopSlaveStatement.java
deleted file mode 100644
index 612360ee3a5..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/rl/MySQLStopSlaveStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.rl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.rl.StopSlaveStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL stop slave statement.
- */
-public final class MySQLStopSlaveStatement extends StopSlaveStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLBeginTransactionStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLBeginTransactionStatement.java
deleted file mode 100644
index ff6aa5a62a9..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLBeginTransactionStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.tcl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.BeginTransactionStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL begin transaction statement.
- */
-public final class MySQLBeginTransactionStatement extends BeginTransactionStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLCommitStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLCommitStatement.java
deleted file mode 100644
index 6b3f08a669c..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLCommitStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.tcl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.CommitStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL commit statement.
- */
-public final class MySQLCommitStatement extends CommitStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLLockStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLLockStatement.java
deleted file mode 100644
index 15168c59440..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLLockStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.tcl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.LockStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL lock statement.
- */
-public final class MySQLLockStatement extends LockStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLReleaseSavepointStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLReleaseSavepointStatement.java
deleted file mode 100644
index 6a864b8000e..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLReleaseSavepointStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.tcl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.ReleaseSavepointStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL release savepoint statement.
- */
-public final class MySQLReleaseSavepointStatement extends ReleaseSavepointStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLRollbackStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLRollbackStatement.java
deleted file mode 100644
index 3a26458016b..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLRollbackStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.tcl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.RollbackStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL rollback statement.
- */
-public final class MySQLRollbackStatement extends RollbackStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLSavepointStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLSavepointStatement.java
deleted file mode 100644
index 765d0c27d74..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLSavepointStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.tcl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.SavepointStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL savepoint statement.
- */
-public final class MySQLSavepointStatement extends SavepointStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLSetAutoCommitStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLSetAutoCommitStatement.java
deleted file mode 100644
index d139d381760..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLSetAutoCommitStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.tcl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.SetAutoCommitStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL set auto commit statement.
- */
-public final class MySQLSetAutoCommitStatement extends SetAutoCommitStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLSetTransactionStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLSetTransactionStatement.java
deleted file mode 100644
index 890c400aab6..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLSetTransactionStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.tcl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.SetTransactionStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL set transaction statement.
- */
-public final class MySQLSetTransactionStatement extends SetTransactionStatement implements MySQLStatement {
-}
diff --git a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLUnlockStatement.java b/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLUnlockStatement.java
deleted file mode 100644
index a2bf2e32457..00000000000
--- a/parser/sql/statement/type/mysql/src/main/java/org/apache/shardingsphere/sql/parser/statement/mysql/tcl/MySQLUnlockStatement.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sql.parser.statement.mysql.tcl;
-
-import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.UnlockStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.MySQLStatement;
-
-/**
- * MySQL unlock statement.
- */
-public final class MySQLUnlockStatement extends UnlockStatement implements MySQLStatement {
-}
diff --git a/proxy/backend/type/mysql/src/main/java/org/apache/shardingsphere/proxy/backend/mysql/connector/sane/MySQLDialectSaneQueryResultEngine.java b/proxy/backend/type/mysql/src/main/java/org/apache/shardingsphere/proxy/backend/mysql/connector/sane/MySQLDialectSaneQueryResultEngine.java
index 161d41cdc84..caec94b925d 100644
--- a/proxy/backend/type/mysql/src/main/java/org/apache/shardingsphere/proxy/backend/mysql/connector/sane/MySQLDialectSaneQueryResultEngine.java
+++ b/proxy/backend/type/mysql/src/main/java/org/apache/shardingsphere/proxy/backend/mysql/connector/sane/MySQLDialectSaneQueryResultEngine.java
@@ -30,9 +30,9 @@ import org.apache.shardingsphere.sql.parser.statement.core.segment.dal.VariableS
import org.apache.shardingsphere.sql.parser.statement.core.segment.dml.item.ExpressionProjectionSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.dml.item.ProjectionSegment;
import org.apache.shardingsphere.sql.parser.statement.core.statement.SQLStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.SetStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowOtherStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.SelectStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLSetStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowOtherStatement;
import java.sql.SQLException;
import java.sql.Types;
@@ -56,10 +56,10 @@ public final class MySQLDialectSaneQueryResultEngine implements DialectSaneQuery
if (sqlStatement instanceof SelectStatement) {
return createQueryResult((SelectStatement) sqlStatement);
}
- if (sqlStatement instanceof MySQLShowOtherStatement) {
+ if (sqlStatement instanceof ShowOtherStatement) {
return Optional.of(createQueryResult());
}
- if (sqlStatement instanceof MySQLSetStatement) {
+ if (sqlStatement instanceof SetStatement) {
return Optional.of(new UpdateResult(0, 0L));
}
return Optional.empty();
diff --git a/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/connector/sane/MySQLDialectSaneQueryResultEngineTest.java b/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/connector/sane/MySQLDialectSaneQueryResultEngineTest.java
index e29049d46eb..41c33a4b7b3 100644
--- a/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/connector/sane/MySQLDialectSaneQueryResultEngineTest.java
+++ b/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/connector/sane/MySQLDialectSaneQueryResultEngineTest.java
@@ -25,9 +25,9 @@ import org.apache.shardingsphere.sql.parser.statement.core.segment.dml.item.Expr
import org.apache.shardingsphere.sql.parser.statement.core.segment.dml.item.ProjectionsSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.table.SimpleTableSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.table.TableNameSegment;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.SetStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowOtherStatement;
import org.apache.shardingsphere.sql.parser.statement.core.value.identifier.IdentifierValue;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLSetStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowOtherStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLInsertStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLSelectStatement;
import org.junit.jupiter.api.Test;
@@ -82,14 +82,14 @@ class MySQLDialectSaneQueryResultEngineTest {
@Test
void assertGetSaneQueryResultForSetStatement() {
- Optional<ExecuteResult> actual = new MySQLDialectSaneQueryResultEngine().getSaneQueryResult(new MySQLSetStatement(), new SQLException(""));
+ Optional<ExecuteResult> actual = new MySQLDialectSaneQueryResultEngine().getSaneQueryResult(new SetStatement(), new SQLException(""));
assertTrue(actual.isPresent());
assertThat(actual.get(), instanceOf(UpdateResult.class));
}
@Test
void assertGetSaneQueryResultForShowOtherStatement() {
- Optional<ExecuteResult> actual = new MySQLDialectSaneQueryResultEngine().getSaneQueryResult(new MySQLShowOtherStatement(), new SQLException(""));
+ Optional<ExecuteResult> actual = new MySQLDialectSaneQueryResultEngine().getSaneQueryResult(new ShowOtherStatement(), new SQLException(""));
assertTrue(actual.isPresent());
assertThat(actual.get(), instanceOf(RawMemoryQueryResult.class));
RawMemoryQueryResult actualResult = (RawMemoryQueryResult) actual.get();
diff --git a/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/MySQLAdminExecutorCreatorTest.java b/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/MySQLAdminExecutorCreatorTest.java
index eb179d85aac..3faa6b8266e 100644
--- a/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/MySQLAdminExecutorCreatorTest.java
+++ b/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/MySQLAdminExecutorCreatorTest.java
@@ -55,15 +55,15 @@ import org.apache.shardingsphere.sql.parser.statement.core.segment.dml.item.Proj
import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.OwnerSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.table.SimpleTableSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.table.TableNameSegment;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.SetStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateDatabaseStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowDatabasesStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowFunctionStatusStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowProcedureStatusStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowProcessListStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowTablesStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.UseStatement;
import org.apache.shardingsphere.sql.parser.statement.core.value.identifier.IdentifierValue;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLSetStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateDatabaseStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowDatabasesStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowFunctionStatusStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowProcedureStatusStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowTablesStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLUseStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLDeleteStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLSelectStatement;
import org.apache.shardingsphere.test.fixture.jdbc.MockedDataSource;
@@ -95,7 +95,7 @@ class MySQLAdminExecutorCreatorTest {
@Test
void assertCreateWithMySQLShowFunctionStatus() {
SQLStatementContext sqlStatementContext = mock(SQLStatementContext.class);
- when(sqlStatementContext.getSqlStatement()).thenReturn(new MySQLShowFunctionStatusStatement());
+ when(sqlStatementContext.getSqlStatement()).thenReturn(new ShowFunctionStatusStatement());
Optional<DatabaseAdminExecutor> actual = new MySQLAdminExecutorCreator().create(sqlStatementContext, "", "", Collections.emptyList());
assertTrue(actual.isPresent());
assertThat(actual.get(), instanceOf(ShowFunctionStatusExecutor.class));
@@ -104,7 +104,7 @@ class MySQLAdminExecutorCreatorTest {
@Test
void assertCreateWithShowProcedureStatus() {
SQLStatementContext sqlStatementContext = mock(SQLStatementContext.class);
- when(sqlStatementContext.getSqlStatement()).thenReturn(new MySQLShowProcedureStatusStatement());
+ when(sqlStatementContext.getSqlStatement()).thenReturn(new ShowProcedureStatusStatement());
Optional<DatabaseAdminExecutor> actual = new MySQLAdminExecutorCreator().create(sqlStatementContext, "", "", Collections.emptyList());
assertTrue(actual.isPresent());
assertThat(actual.get(), instanceOf(ShowProcedureStatusExecutor.class));
@@ -113,7 +113,7 @@ class MySQLAdminExecutorCreatorTest {
@Test
void assertCreateWithShowTables() {
SQLStatementContext sqlStatementContext = mock(SQLStatementContext.class);
- when(sqlStatementContext.getSqlStatement()).thenReturn(new MySQLShowTablesStatement());
+ when(sqlStatementContext.getSqlStatement()).thenReturn(new ShowTablesStatement());
Optional<DatabaseAdminExecutor> actual = new MySQLAdminExecutorCreator().create(sqlStatementContext, "", "", Collections.emptyList());
assertTrue(actual.isPresent());
assertThat(actual.get(), instanceOf(ShowTablesExecutor.class));
@@ -128,16 +128,16 @@ class MySQLAdminExecutorCreatorTest {
@Test
void assertCreateWithUse() {
SQLStatementContext sqlStatementContext = mock(SQLStatementContext.class);
- when(sqlStatementContext.getSqlStatement()).thenReturn(new MySQLUseStatement());
+ when(sqlStatementContext.getSqlStatement()).thenReturn(new UseStatement());
Optional<DatabaseAdminExecutor> actual = new MySQLAdminExecutorCreator().create(sqlStatementContext, "use db", "", Collections.emptyList());
assertTrue(actual.isPresent());
assertThat(actual.get(), instanceOf(UseDatabaseExecutor.class));
}
@Test
- void assertCreateWithMySQLShowDatabasesStatement() {
+ void assertCreateWithShowDatabasesStatement() {
SQLStatementContext sqlStatementContext = mock(SQLStatementContext.class);
- when(sqlStatementContext.getSqlStatement()).thenReturn(new MySQLShowDatabasesStatement());
+ when(sqlStatementContext.getSqlStatement()).thenReturn(new ShowDatabasesStatement());
Optional<DatabaseAdminExecutor> actual = new MySQLAdminExecutorCreator().create(sqlStatementContext, "", "", Collections.emptyList());
assertTrue(actual.isPresent());
assertThat(actual.get(), instanceOf(ShowDatabasesExecutor.class));
@@ -155,7 +155,7 @@ class MySQLAdminExecutorCreatorTest {
@Test
void assertCreateWithMySQLShowCreateDatabaseStatement() {
SQLStatementContext sqlStatementContext = mock(SQLStatementContext.class);
- when(sqlStatementContext.getSqlStatement()).thenReturn(new MySQLShowCreateDatabaseStatement());
+ when(sqlStatementContext.getSqlStatement()).thenReturn(new ShowCreateDatabaseStatement());
Optional<DatabaseAdminExecutor> actual = new MySQLAdminExecutorCreator().create(sqlStatementContext, "", "", Collections.emptyList());
assertTrue(actual.isPresent());
assertThat(actual.get(), instanceOf(ShowCreateDatabaseExecutor.class));
@@ -164,7 +164,7 @@ class MySQLAdminExecutorCreatorTest {
@Test
void assertCreateWithSetStatement() {
SQLStatementContext sqlStatementContext = mock(SQLStatementContext.class);
- when(sqlStatementContext.getSqlStatement()).thenReturn(new MySQLSetStatement());
+ when(sqlStatementContext.getSqlStatement()).thenReturn(new SetStatement());
Optional<DatabaseAdminExecutor> actual = new MySQLAdminExecutorCreator().create(sqlStatementContext, "", "", Collections.emptyList());
assertTrue(actual.isPresent());
assertThat(actual.get(), instanceOf(MySQLSetVariableAdminExecutor.class));
diff --git a/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/MySQLSetVariableAdminExecutorTest.java b/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/MySQLSetVariableAdminExecutorTest.java
index cd8b97463e1..5b612dc1903 100644
--- a/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/MySQLSetVariableAdminExecutorTest.java
+++ b/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/MySQLSetVariableAdminExecutorTest.java
@@ -35,7 +35,6 @@ import org.apache.shardingsphere.sql.parser.api.CacheOption;
import org.apache.shardingsphere.sql.parser.statement.core.segment.dal.VariableAssignSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.dal.VariableSegment;
import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.SetStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLSetStatement;
import org.apache.shardingsphere.test.mock.AutoMockExtension;
import org.apache.shardingsphere.test.mock.StaticMockSettings;
import org.junit.jupiter.api.Test;
@@ -91,7 +90,7 @@ class MySQLSetVariableAdminExecutorTest {
VariableAssignSegment setGlobalMaxConnectionAssignSegment = new VariableAssignSegment(0, 0, maxConnectionVariableSegment, "151");
VariableSegment characterSetClientSegment = new VariableSegment(0, 0, "character_set_client");
VariableAssignSegment setCharacterSetClientVariableSegment = new VariableAssignSegment(0, 0, characterSetClientSegment, "'utf8mb4'");
- SetStatement result = new MySQLSetStatement();
+ SetStatement result = new SetStatement();
result.getVariableAssigns().add(setGlobalMaxConnectionAssignSegment);
result.getVariableAssigns().add(setCharacterSetClientVariableSegment);
return result;
@@ -107,7 +106,7 @@ class MySQLSetVariableAdminExecutorTest {
@Test
void assertSetUnknownSystemVariable() {
- SetStatement setStatement = new MySQLSetStatement();
+ SetStatement setStatement = new SetStatement();
setStatement.getVariableAssigns().add(new VariableAssignSegment(0, 0, new VariableSegment(0, 0, "unknown_variable"), ""));
MySQLSetVariableAdminExecutor executor = new MySQLSetVariableAdminExecutor(setStatement);
assertThrows(UnknownSystemVariableException.class, () -> executor.execute(mock(ConnectionSession.class)));
@@ -115,7 +114,7 @@ class MySQLSetVariableAdminExecutorTest {
@Test
void assertSetVariableWithIncorrectScope() {
- SetStatement setStatement = new MySQLSetStatement();
+ SetStatement setStatement = new SetStatement();
setStatement.getVariableAssigns().add(new VariableAssignSegment(0, 0, new VariableSegment(0, 0, "max_connections"), ""));
MySQLSetVariableAdminExecutor executor = new MySQLSetVariableAdminExecutor(setStatement);
assertThrows(ErrorGlobalVariableException.class, () -> executor.execute(mock(ConnectionSession.class)));
diff --git a/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowCreateDatabaseExecutorTest.java b/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowCreateDatabaseExecutorTest.java
index 300b23a94a6..521e43a003c 100644
--- a/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowCreateDatabaseExecutorTest.java
+++ b/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowCreateDatabaseExecutorTest.java
@@ -27,7 +27,7 @@ import org.apache.shardingsphere.mode.manager.ContextManager;
import org.apache.shardingsphere.mode.metadata.MetaDataContexts;
import org.apache.shardingsphere.proxy.backend.context.ProxyContext;
import org.apache.shardingsphere.proxy.backend.session.ConnectionSession;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateDatabaseStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateDatabaseStatement;
import org.apache.shardingsphere.test.mock.AutoMockExtension;
import org.apache.shardingsphere.test.mock.StaticMockSettings;
import org.junit.jupiter.api.Test;
@@ -55,7 +55,7 @@ class ShowCreateDatabaseExecutorTest {
@Test
void assertExecute() throws SQLException {
- MySQLShowCreateDatabaseStatement statement = new MySQLShowCreateDatabaseStatement();
+ ShowCreateDatabaseStatement statement = new ShowCreateDatabaseStatement();
statement.setDatabaseName("db_0");
ShowCreateDatabaseExecutor executor = new ShowCreateDatabaseExecutor(statement);
ContextManager contextManager = mockContextManager();
diff --git a/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowDatabasesExecutorTest.java b/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowDatabasesExecutorTest.java
index 118de9cc1c2..8ce97b54581 100644
--- a/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowDatabasesExecutorTest.java
+++ b/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowDatabasesExecutorTest.java
@@ -34,7 +34,7 @@ import org.apache.shardingsphere.proxy.backend.context.ProxyContext;
import org.apache.shardingsphere.proxy.backend.session.ConnectionSession;
import org.apache.shardingsphere.sql.parser.statement.core.segment.dal.ShowFilterSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.dal.ShowLikeSegment;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowDatabasesStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowDatabasesStatement;
import org.apache.shardingsphere.test.mock.AutoMockExtension;
import org.apache.shardingsphere.test.mock.StaticMockSettings;
import org.junit.jupiter.api.Test;
@@ -72,7 +72,7 @@ class ShowDatabasesExecutorTest {
ContextManager contextManager = mockContextManager();
when(ProxyContext.getInstance().getContextManager()).thenReturn(contextManager);
when(ProxyContext.getInstance().getAllDatabaseNames()).thenReturn(IntStream.range(0, 10).mapToObj(each -> String.format("database_%s", each)).collect(Collectors.toList()));
- ShowDatabasesExecutor executor = new ShowDatabasesExecutor(new MySQLShowDatabasesStatement());
+ ShowDatabasesExecutor executor = new ShowDatabasesExecutor(new ShowDatabasesStatement());
executor.execute(mockConnectionSession());
QueryResultMetaData queryResultMetaData = executor.getQueryResultMetaData();
assertThat(queryResultMetaData.getColumnCount(), is(1));
@@ -84,7 +84,7 @@ class ShowDatabasesExecutorTest {
@Test
void assertExecuteWithPrefixLike() throws SQLException {
- MySQLShowDatabasesStatement showDatabasesStatement = new MySQLShowDatabasesStatement();
+ ShowDatabasesStatement showDatabasesStatement = new ShowDatabasesStatement();
ShowFilterSegment showFilterSegment = new ShowFilterSegment(0, 0);
ShowLikeSegment showLikeSegment = new ShowLikeSegment(0, 0, "database%");
showFilterSegment.setLike(showLikeSegment);
@@ -117,7 +117,7 @@ class ShowDatabasesExecutorTest {
@Test
void assertExecuteWithSuffixLike() throws SQLException {
- MySQLShowDatabasesStatement showDatabasesStatement = new MySQLShowDatabasesStatement();
+ ShowDatabasesStatement showDatabasesStatement = new ShowDatabasesStatement();
ShowFilterSegment showFilterSegment = new ShowFilterSegment(0, 0);
ShowLikeSegment showLikeSegment = new ShowLikeSegment(0, 0, "%_1");
showFilterSegment.setLike(showLikeSegment);
@@ -138,7 +138,7 @@ class ShowDatabasesExecutorTest {
@Test
void assertExecuteWithPreciseLike() throws SQLException {
- MySQLShowDatabasesStatement showDatabasesStatement = new MySQLShowDatabasesStatement();
+ ShowDatabasesStatement showDatabasesStatement = new ShowDatabasesStatement();
ShowFilterSegment showFilterSegment = new ShowFilterSegment(0, 0);
ShowLikeSegment showLikeSegment = new ShowLikeSegment(0, 0, "database_9");
showFilterSegment.setLike(showLikeSegment);
@@ -159,7 +159,7 @@ class ShowDatabasesExecutorTest {
@Test
void assertExecuteWithLikeMatchNone() throws SQLException {
- MySQLShowDatabasesStatement showDatabasesStatement = new MySQLShowDatabasesStatement();
+ ShowDatabasesStatement showDatabasesStatement = new ShowDatabasesStatement();
ShowFilterSegment showFilterSegment = new ShowFilterSegment(0, 0);
ShowLikeSegment showLikeSegment = new ShowLikeSegment(0, 0, "not_exist_database");
showFilterSegment.setLike(showLikeSegment);
diff --git a/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowFunctionStatusExecutorTest.java b/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowFunctionStatusExecutorTest.java
index eee467a1237..1bcc456d121 100644
--- a/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowFunctionStatusExecutorTest.java
+++ b/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowFunctionStatusExecutorTest.java
@@ -27,7 +27,7 @@ import org.apache.shardingsphere.mode.manager.ContextManager;
import org.apache.shardingsphere.mode.metadata.MetaDataContexts;
import org.apache.shardingsphere.proxy.backend.context.ProxyContext;
import org.apache.shardingsphere.proxy.backend.session.ConnectionSession;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowFunctionStatusStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowFunctionStatusStatement;
import org.apache.shardingsphere.test.mock.AutoMockExtension;
import org.apache.shardingsphere.test.mock.StaticMockSettings;
import org.junit.jupiter.api.Test;
@@ -55,7 +55,7 @@ class ShowFunctionStatusExecutorTest {
@Test
void assertExecute() throws SQLException {
- ShowFunctionStatusExecutor executor = new ShowFunctionStatusExecutor(new MySQLShowFunctionStatusStatement());
+ ShowFunctionStatusExecutor executor = new ShowFunctionStatusExecutor(new ShowFunctionStatusStatement());
ContextManager contextManager = mockContextManager();
when(ProxyContext.getInstance().getContextManager()).thenReturn(contextManager);
executor.execute(mock(ConnectionSession.class));
diff --git a/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowProcedureStatusExecutorTest.java b/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowProcedureStatusExecutorTest.java
index db522d47519..a53e1538566 100644
--- a/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowProcedureStatusExecutorTest.java
+++ b/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowProcedureStatusExecutorTest.java
@@ -27,7 +27,7 @@ import org.apache.shardingsphere.mode.manager.ContextManager;
import org.apache.shardingsphere.mode.metadata.MetaDataContexts;
import org.apache.shardingsphere.proxy.backend.context.ProxyContext;
import org.apache.shardingsphere.proxy.backend.session.ConnectionSession;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowProcedureStatusStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowProcedureStatusStatement;
import org.apache.shardingsphere.test.mock.AutoMockExtension;
import org.apache.shardingsphere.test.mock.StaticMockSettings;
import org.junit.jupiter.api.Test;
@@ -55,7 +55,7 @@ class ShowProcedureStatusExecutorTest {
@Test
void assertExecute() throws SQLException {
- ShowProcedureStatusExecutor executor = new ShowProcedureStatusExecutor(new MySQLShowProcedureStatusStatement());
+ ShowProcedureStatusExecutor executor = new ShowProcedureStatusExecutor(new ShowProcedureStatusStatement());
ContextManager contextManager = mockContextManager();
when(ProxyContext.getInstance().getContextManager()).thenReturn(contextManager);
executor.execute(mock(ConnectionSession.class));
diff --git a/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowTablesExecutorTest.java b/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowTablesExecutorTest.java
index ed3143367b8..eb03e657da8 100644
--- a/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowTablesExecutorTest.java
+++ b/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/ShowTablesExecutorTest.java
@@ -39,8 +39,8 @@ import org.apache.shardingsphere.sql.parser.statement.core.segment.dal.FromDatab
import org.apache.shardingsphere.sql.parser.statement.core.segment.dal.ShowFilterSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.dal.ShowLikeSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.DatabaseSegment;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowTablesStatement;
import org.apache.shardingsphere.sql.parser.statement.core.value.identifier.IdentifierValue;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowTablesStatement;
import org.apache.shardingsphere.test.mock.AutoMockExtension;
import org.apache.shardingsphere.test.mock.StaticMockSettings;
import org.junit.jupiter.api.Test;
@@ -74,7 +74,7 @@ class ShowTablesExecutorTest {
@Test
void assertShowTablesExecutorWithoutFilter() throws SQLException {
- ShowTablesExecutor executor = new ShowTablesExecutor(new MySQLShowTablesStatement(), databaseType);
+ ShowTablesExecutor executor = new ShowTablesExecutor(new ShowTablesStatement(), databaseType);
Collection<ShardingSphereDatabase> databases = mockDatabases();
ContextManager contextManager = mockContextManager(databases);
when(ProxyContext.getInstance().getContextManager()).thenReturn(contextManager);
@@ -93,7 +93,7 @@ class ShowTablesExecutorTest {
@Test
void assertShowTablesExecutorWithFull() throws SQLException {
- MySQLShowTablesStatement showTablesStatement = mock(MySQLShowTablesStatement.class);
+ ShowTablesStatement showTablesStatement = mock(ShowTablesStatement.class);
when(showTablesStatement.isContainsFull()).thenReturn(true);
ShowTablesExecutor executor = new ShowTablesExecutor(showTablesStatement, databaseType);
Collection<ShardingSphereDatabase> databases = mockDatabases();
@@ -105,7 +105,7 @@ class ShowTablesExecutorTest {
@Test
void assertShowTablesExecutorWithLikeFilter() throws SQLException {
- MySQLShowTablesStatement showTablesStatement = new MySQLShowTablesStatement();
+ ShowTablesStatement showTablesStatement = new ShowTablesStatement();
ShowFilterSegment showFilterSegment = mock(ShowFilterSegment.class);
when(showFilterSegment.getLike()).thenReturn(Optional.of(new ShowLikeSegment(0, 10, "t_account%")));
showTablesStatement.setFilter(showFilterSegment);
@@ -126,7 +126,7 @@ class ShowTablesExecutorTest {
@Test
void assertShowTablesExecutorWithSpecificTable() throws SQLException {
- MySQLShowTablesStatement showTablesStatement = new MySQLShowTablesStatement();
+ ShowTablesStatement showTablesStatement = new ShowTablesStatement();
ShowFilterSegment showFilterSegment = mock(ShowFilterSegment.class);
when(showFilterSegment.getLike()).thenReturn(Optional.of(new ShowLikeSegment(0, 10, "t_account")));
showTablesStatement.setFilter(showFilterSegment);
@@ -143,7 +143,7 @@ class ShowTablesExecutorTest {
@Test
void assertShowTablesExecutorWithUpperCase() throws SQLException {
- MySQLShowTablesStatement showTablesStatement = new MySQLShowTablesStatement();
+ ShowTablesStatement showTablesStatement = new ShowTablesStatement();
ShowFilterSegment showFilterSegment = mock(ShowFilterSegment.class);
when(showFilterSegment.getLike()).thenReturn(Optional.of(new ShowLikeSegment(0, 10, "T_TEST")));
showTablesStatement.setFilter(showFilterSegment);
@@ -160,7 +160,7 @@ class ShowTablesExecutorTest {
@Test
void assertShowTablesExecutorWithLowerCase() throws SQLException {
- MySQLShowTablesStatement showTablesStatement = new MySQLShowTablesStatement();
+ ShowTablesStatement showTablesStatement = new ShowTablesStatement();
ShowFilterSegment showFilterSegment = mock(ShowFilterSegment.class);
when(showFilterSegment.getLike()).thenReturn(Optional.of(new ShowLikeSegment(0, 10, "t_test")));
showTablesStatement.setFilter(showFilterSegment);
@@ -177,7 +177,7 @@ class ShowTablesExecutorTest {
@Test
void assertShowTableFromUncompletedDatabase() throws SQLException {
- MySQLShowTablesStatement showTablesStatement = new MySQLShowTablesStatement();
+ ShowTablesStatement showTablesStatement = new ShowTablesStatement();
showTablesStatement.setFromDatabase(new FromDatabaseSegment(0, 0, new DatabaseSegment(0, 0, new IdentifierValue("uncompleted"))));
ShowTablesExecutor executor = new ShowTablesExecutor(showTablesStatement, databaseType);
ContextManager contextManager = mockContextManager(mockDatabases());
diff --git a/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/UseDatabaseExecutorTest.java b/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/UseDatabaseExecutorTest.java
index 60dbeb7fe89..fddfec7062e 100644
--- a/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/UseDatabaseExecutorTest.java
+++ b/proxy/backend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/executor/UseDatabaseExecutorTest.java
@@ -28,7 +28,7 @@ import org.apache.shardingsphere.mode.manager.ContextManager;
import org.apache.shardingsphere.mode.metadata.MetaDataContexts;
import org.apache.shardingsphere.proxy.backend.context.ProxyContext;
import org.apache.shardingsphere.proxy.backend.session.ConnectionSession;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLUseStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.UseStatement;
import org.apache.shardingsphere.test.mock.AutoMockExtension;
import org.apache.shardingsphere.test.mock.StaticMockSettings;
import org.junit.jupiter.api.Test;
@@ -61,7 +61,7 @@ class UseDatabaseExecutorTest {
@Test
void assertExecuteUseStatementBackendHandler() {
- MySQLUseStatement useStatement = mock(MySQLUseStatement.class);
+ UseStatement useStatement = mock(UseStatement.class);
when(useStatement.getDatabase()).thenReturn(String.format(DATABASE_PATTERN, 0));
ContextManager contextManager = mockContextManager();
when(ProxyContext.getInstance().getContextManager()).thenReturn(contextManager);
@@ -74,7 +74,7 @@ class UseDatabaseExecutorTest {
@Test
void assertExecuteUseStatementBackendHandlerWhenSchemaNotExist() {
- MySQLUseStatement useStatement = mock(MySQLUseStatement.class);
+ UseStatement useStatement = mock(UseStatement.class);
when(useStatement.getDatabase()).thenReturn(String.format(DATABASE_PATTERN, 10));
UseDatabaseExecutor executor = new UseDatabaseExecutor(useStatement);
ContextManager contextManager = mockContextManager();
diff --git a/proxy/frontend/type/mysql/src/main/java/org/apache/shardingsphere/proxy/frontend/mysql/command/query/binary/prepare/MySQLComStmtPrepareChecker.java b/proxy/frontend/type/mysql/src/main/java/org/apache/shardingsphere/proxy/frontend/mysql/command/query/binary/prepare/MySQLComStmtPrepareChecker.java
index 0fd6daacd7f..b55d1e17a3b 100644
--- a/proxy/frontend/type/mysql/src/main/java/org/apache/shardingsphere/proxy/frontend/mysql/command/query/binary/prepare/MySQLComStmtPrepareChecker.java
+++ b/proxy/frontend/type/mysql/src/main/java/org/apache/shardingsphere/proxy/frontend/mysql/command/query/binary/prepare/MySQLComStmtPrepareChecker.java
@@ -20,61 +20,61 @@ package org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.prep
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.apache.shardingsphere.sql.parser.statement.core.statement.SQLStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.AnalyzeTableStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.CacheIndexStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ChecksumTableStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.FlushStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.InstallPluginStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.KillStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.LoadIndexInfoStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.OptimizeTableStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.RepairTableStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ResetStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.SetStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowBinaryLogsStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowBinlogEventsStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateEventStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateFunctionStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateProcedureStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateTableStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateViewStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowErrorsStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowStatusStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowWarningsStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.UninstallPluginStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.AlterUserStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.DropUserStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.RenameUserStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateDatabaseStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateViewStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropDatabaseStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.RenameTableStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.TruncateStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.CallStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.DoStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.rl.ChangeMasterStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.rl.StartSlaveStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.rl.StopSlaveStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.CommitStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.xa.XABeginStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.xa.XACommitStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.xa.XAEndStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.xa.XAPrepareStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.xa.XARecoveryStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.xa.XARollbackStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLAnalyzeTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLCacheIndexStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLChecksumTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLFlushStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLInstallPluginStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLKillStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLLoadIndexInfoStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLOptimizeTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLRepairTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLResetStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLSetStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowBinaryLogsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowBinlogEventsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateEventStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateFunctionStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateProcedureStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateViewStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowErrorsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowStatusStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowWarningsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLUninstallPluginStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLAlterUserStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLCreateUserStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLDropUserStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLGrantStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLRenameUserStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLRevokeStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLAlterTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLCreateDatabaseStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLCreateIndexStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLCreateTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLCreateViewStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDropDatabaseStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDropIndexStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDropTableStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDropViewStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLRenameTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLTruncateStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLCallStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLDeleteStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLDoStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLInsertStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLSelectStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLUpdateStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.rl.MySQLChangeMasterStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.rl.MySQLStartSlaveStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.rl.MySQLStopSlaveStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.tcl.MySQLCommitStatement;
import java.util.Arrays;
import java.util.Collection;
@@ -91,17 +91,17 @@ public final class MySQLComStmtPrepareChecker {
private static final Collection<Class<?>> ALLOWED_SQL_STATEMENTS = new HashSet<>();
static {
- ALLOWED_SQL_STATEMENTS.addAll(Arrays.asList(MySQLAlterTableStatement.class, MySQLAlterUserStatement.class, MySQLAnalyzeTableStatement.class,
- MySQLCacheIndexStatement.class, MySQLCallStatement.class, MySQLChangeMasterStatement.class, MySQLChecksumTableStatement.class, MySQLCommitStatement.class,
- MySQLCreateIndexStatement.class, MySQLDropIndexStatement.class, MySQLCreateDatabaseStatement.class, MySQLDropDatabaseStatement.class,
- MySQLCreateTableStatement.class, MySQLDropTableStatement.class, MySQLCreateUserStatement.class, MySQLRenameUserStatement.class, MySQLDropUserStatement.class,
- MySQLCreateViewStatement.class, MySQLDropViewStatement.class, MySQLDeleteStatement.class, MySQLDoStatement.class, MySQLFlushStatement.class,
- MySQLGrantStatement.class, MySQLInsertStatement.class, MySQLInstallPluginStatement.class, MySQLKillStatement.class, MySQLLoadIndexInfoStatement.class,
- MySQLOptimizeTableStatement.class, MySQLRenameTableStatement.class, MySQLRepairTableStatement.class, MySQLResetStatement.class,
- MySQLRevokeStatement.class, MySQLSelectStatement.class, MySQLSetStatement.class, MySQLShowWarningsStatement.class, MySQLShowErrorsStatement.class,
- MySQLShowBinlogEventsStatement.class, MySQLShowCreateProcedureStatement.class, MySQLShowCreateFunctionStatement.class, MySQLShowCreateEventStatement.class,
- MySQLShowCreateTableStatement.class, MySQLShowCreateViewStatement.class, MySQLShowBinaryLogsStatement.class, MySQLShowStatusStatement.class,
- MySQLStartSlaveStatement.class, MySQLStopSlaveStatement.class, MySQLTruncateStatement.class, MySQLUninstallPluginStatement.class, MySQLUpdateStatement.class,
+ ALLOWED_SQL_STATEMENTS.addAll(Arrays.asList(MySQLAlterTableStatement.class, AlterUserStatement.class, AnalyzeTableStatement.class,
+ CacheIndexStatement.class, CallStatement.class, ChangeMasterStatement.class, ChecksumTableStatement.class, CommitStatement.class,
+ MySQLCreateIndexStatement.class, MySQLDropIndexStatement.class, CreateDatabaseStatement.class, DropDatabaseStatement.class,
+ MySQLCreateTableStatement.class, MySQLDropTableStatement.class, MySQLCreateUserStatement.class, RenameUserStatement.class, DropUserStatement.class,
+ CreateViewStatement.class, MySQLDropViewStatement.class, MySQLDeleteStatement.class, DoStatement.class, FlushStatement.class,
+ MySQLGrantStatement.class, MySQLInsertStatement.class, InstallPluginStatement.class, KillStatement.class, LoadIndexInfoStatement.class,
+ OptimizeTableStatement.class, RenameTableStatement.class, RepairTableStatement.class, ResetStatement.class,
+ MySQLRevokeStatement.class, MySQLSelectStatement.class, SetStatement.class, ShowWarningsStatement.class, ShowErrorsStatement.class,
+ ShowBinlogEventsStatement.class, ShowCreateProcedureStatement.class, ShowCreateFunctionStatement.class, ShowCreateEventStatement.class,
+ ShowCreateTableStatement.class, ShowCreateViewStatement.class, ShowBinaryLogsStatement.class, ShowStatusStatement.class,
+ StartSlaveStatement.class, StopSlaveStatement.class, TruncateStatement.class, UninstallPluginStatement.class, MySQLUpdateStatement.class,
XABeginStatement.class, XAPrepareStatement.class, XACommitStatement.class, XARollbackStatement.class, XAEndStatement.class, XARecoveryStatement.class));
}
diff --git a/proxy/frontend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/frontend/mysql/command/query/binary/execute/MySQLComStmtExecuteExecutorTest.java b/proxy/frontend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/frontend/mysql/command/query/binary/execute/MySQLComStmtExecuteExecutorTest.java
index 8b3256e0a98..b897d022627 100644
--- a/proxy/frontend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/frontend/mysql/command/query/binary/execute/MySQLComStmtExecuteExecutorTest.java
+++ b/proxy/frontend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/frontend/mysql/command/query/binary/execute/MySQLComStmtExecuteExecutorTest.java
@@ -55,10 +55,10 @@ import org.apache.shardingsphere.sql.parser.statement.core.segment.dml.assignmen
import org.apache.shardingsphere.sql.parser.statement.core.segment.dml.column.ColumnSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.dml.expr.simple.ParameterMarkerExpressionSegment;
import org.apache.shardingsphere.sql.parser.statement.core.segment.dml.item.ProjectionsSegment;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.CommitStatement;
import org.apache.shardingsphere.sql.parser.statement.core.value.identifier.IdentifierValue;
import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLSelectStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLUpdateStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.tcl.MySQLCommitStatement;
import org.apache.shardingsphere.test.mock.AutoMockExtension;
import org.apache.shardingsphere.test.mock.StaticMockSettings;
import org.junit.jupiter.api.BeforeEach;
@@ -117,7 +117,7 @@ class MySQLComStmtExecuteExecutorTest {
when(connectionSession.getServerPreparedStatementRegistry().getPreparedStatement(2))
.thenReturn(new MySQLServerPreparedStatement("UPDATE tbl SET col=1 WHERE id = ?", updateStatementContext, new HintValueContext(), Collections.emptyList()));
when(connectionSession.getServerPreparedStatementRegistry().getPreparedStatement(3))
- .thenReturn(new MySQLServerPreparedStatement("COMMIT", new UnknownSQLStatementContext(databaseType, new MySQLCommitStatement()), new HintValueContext(), Collections.emptyList()));
+ .thenReturn(new MySQLServerPreparedStatement("COMMIT", new UnknownSQLStatementContext(databaseType, new CommitStatement()), new HintValueContext(), Collections.emptyList()));
ConnectionContext connectionContext = mockConnectionContext();
when(connectionSession.getConnectionContext()).thenReturn(connectionContext);
when(ProxyContext.getInstance().getContextManager().getMetaDataContexts().getMetaData()).thenReturn(new ShardingSphereMetaData());
@@ -194,7 +194,7 @@ class MySQLComStmtExecuteExecutorTest {
when(packet.getStatementId()).thenReturn(3);
MySQLComStmtExecuteExecutor executor = new MySQLComStmtExecuteExecutor(packet, connectionSession);
ProxyBackendHandler proxyBackendHandler = mock(ProxyBackendHandler.class);
- when(proxyBackendHandler.execute()).thenReturn(new UpdateResponseHeader(new MySQLCommitStatement()));
+ when(proxyBackendHandler.execute()).thenReturn(new UpdateResponseHeader(new CommitStatement()));
when(ProxyBackendHandlerFactory.newInstance(eq(databaseType), any(QueryContext.class), eq(connectionSession), eq(true))).thenReturn(proxyBackendHandler);
Iterator<DatabasePacket> actual = executor.execute().iterator();
assertThat(executor.getResponseType(), is(ResponseType.UPDATE));
diff --git a/proxy/frontend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/frontend/mysql/command/query/binary/prepare/MySQLComStmtPrepareCheckerTest.java b/proxy/frontend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/frontend/mysql/command/query/binary/prepare/MySQLComStmtPrepareCheckerTest.java
index 29223c817c9..64fbec60ffa 100644
--- a/proxy/frontend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/frontend/mysql/command/query/binary/prepare/MySQLComStmtPrepareCheckerTest.java
+++ b/proxy/frontend/type/mysql/src/test/java/org/apache/shardingsphere/proxy/frontend/mysql/command/query/binary/prepare/MySQLComStmtPrepareCheckerTest.java
@@ -18,61 +18,61 @@
package org.apache.shardingsphere.proxy.frontend.mysql.command.query.binary.prepare;
import org.apache.shardingsphere.sql.parser.statement.core.statement.SQLStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.AnalyzeTableStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.CacheIndexStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ChecksumTableStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.FlushStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.InstallPluginStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.KillStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.LoadIndexInfoStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.OptimizeTableStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.RepairTableStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ResetStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.SetStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowBinaryLogsStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowBinlogEventsStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateEventStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateFunctionStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateProcedureStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateTableStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowCreateViewStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowErrorsStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowStatusStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.ShowWarningsStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dal.UninstallPluginStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.AlterUserStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.DropUserStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dcl.RenameUserStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateDatabaseStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.CreateViewStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.DropDatabaseStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.RenameTableStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.ddl.TruncateStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.CallStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.dml.DoStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.rl.ChangeMasterStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.rl.StartSlaveStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.rl.StopSlaveStatement;
+import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.CommitStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.xa.XABeginStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.xa.XACommitStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.xa.XAEndStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.xa.XAPrepareStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.xa.XARecoveryStatement;
import org.apache.shardingsphere.sql.parser.statement.core.statement.tcl.xa.XARollbackStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLAnalyzeTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLCacheIndexStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLChecksumTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLFlushStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLInstallPluginStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLKillStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLLoadIndexInfoStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLOptimizeTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLRepairTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLResetStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLSetStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowBinaryLogsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowBinlogEventsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateEventStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateFunctionStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateProcedureStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowCreateViewStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowErrorsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowStatusStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLShowWarningsStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dal.MySQLUninstallPluginStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLAlterUserStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLCreateUserStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLDropUserStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLGrantStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLRenameUserStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dcl.MySQLRevokeStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLAlterTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLCreateDatabaseStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLCreateIndexStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLCreateTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLCreateViewStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDropDatabaseStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDropIndexStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDropTableStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLDropViewStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLRenameTableStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.ddl.MySQLTruncateStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLCallStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLDeleteStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLDoStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLInsertStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLSelectStatement;
import org.apache.shardingsphere.sql.parser.statement.mysql.dml.MySQLUpdateStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.rl.MySQLChangeMasterStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.rl.MySQLStartSlaveStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.rl.MySQLStopSlaveStatement;
-import org.apache.shardingsphere.sql.parser.statement.mysql.tcl.MySQLCommitStatement;
import org.junit.jupiter.api.Test;
import java.util.Arrays;
@@ -86,18 +86,18 @@ class MySQLComStmtPrepareCheckerTest {
void assertIsStatementAllowed() {
MySQLCreateTableStatement createTableStatement = new MySQLCreateTableStatement();
Collection<SQLStatement> sqlStatements = Arrays.asList(
- new MySQLAlterTableStatement(), new MySQLAlterUserStatement(), new MySQLAnalyzeTableStatement(), new MySQLCacheIndexStatement(),
- new MySQLCallStatement(), new MySQLChangeMasterStatement(), new MySQLChecksumTableStatement(), new MySQLCommitStatement(), new MySQLCreateIndexStatement(),
- new MySQLDropIndexStatement(), new MySQLCreateDatabaseStatement(), new MySQLDropDatabaseStatement(), createTableStatement,
- new MySQLDropTableStatement(), new MySQLCreateUserStatement(), new MySQLRenameUserStatement(), new MySQLDropUserStatement(),
- new MySQLCreateViewStatement(), new MySQLDropViewStatement(), new MySQLDeleteStatement(), new MySQLDoStatement(), new MySQLFlushStatement(),
- new MySQLGrantStatement(), new MySQLInsertStatement(), new MySQLInstallPluginStatement(), new MySQLKillStatement(),
- new MySQLLoadIndexInfoStatement(), new MySQLOptimizeTableStatement(), new MySQLRenameTableStatement(), new MySQLRepairTableStatement(),
- new MySQLResetStatement(), new MySQLRevokeStatement(), new MySQLSelectStatement(), new MySQLSetStatement(), new MySQLShowWarningsStatement(),
- new MySQLShowErrorsStatement(), new MySQLShowBinlogEventsStatement(), new MySQLShowCreateProcedureStatement(), new MySQLShowCreateFunctionStatement(),
- new MySQLShowCreateEventStatement(),
- new MySQLShowCreateTableStatement(), new MySQLShowCreateViewStatement(), new MySQLShowBinaryLogsStatement(), new MySQLShowStatusStatement(), new MySQLStartSlaveStatement(),
- new MySQLStopSlaveStatement(), new MySQLTruncateStatement(), new MySQLUninstallPluginStatement(), new MySQLUpdateStatement(),
+ new MySQLAlterTableStatement(), new AlterUserStatement(), new AnalyzeTableStatement(), new CacheIndexStatement(),
+ new CallStatement(), new ChangeMasterStatement(), new ChecksumTableStatement(), new CommitStatement(), new MySQLCreateIndexStatement(),
+ new MySQLDropIndexStatement(), new CreateDatabaseStatement(), new DropDatabaseStatement(), createTableStatement,
+ new MySQLDropTableStatement(), new MySQLCreateUserStatement(), new RenameUserStatement(), new DropUserStatement(),
+ new CreateViewStatement(), new MySQLDropViewStatement(), new MySQLDeleteStatement(), new DoStatement(), new FlushStatement(),
+ new MySQLGrantStatement(), new MySQLInsertStatement(), new InstallPluginStatement(), new KillStatement(),
+ new LoadIndexInfoStatement(), new OptimizeTableStatement(), new RenameTableStatement(), new RepairTableStatement(),
+ new ResetStatement(), new MySQLRevokeStatement(), new MySQLSelectStatement(), new SetStatement(), new ShowWarningsStatement(),
+ new ShowErrorsStatement(), new ShowBinlogEventsStatement(), new ShowCreateProcedureStatement(), new ShowCreateFunctionStatement(),
+ new ShowCreateEventStatement(),
+ new ShowCreateTableStatement(), new ShowCreateViewStatement(), new ShowBinaryLogsStatement(), new ShowStatusStatement(), new StartSlaveStatement(),
+ new StopSlaveStatement(), new TruncateStatement(), new UninstallPluginStatement(), new MySQLUpdateStatement(),
new XABeginStatement("1"), new XAPrepareStatement("1"), new XACommitStatement("1"), new XARollbackStatement("1"), new XAEndStatement("1"), new XARecoveryStatement());
for (SQLStatement each : sqlStatements) {
assertTrue(MySQLComStmtPrepareChecker.isAllowedStatement(each));