This is an automated email from the ASF dual-hosted git repository.
jianglongtao 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 0188fa821bf Remove Hint DistSQL. (#24388)
0188fa821bf is described below
commit 0188fa821bf3f6250953ba92edf9acaf7358b5e7
Author: yx9o <[email protected]>
AuthorDate: Wed Mar 1 13:30:46 2023 +0800
Remove Hint DistSQL. (#24388)
* Remove Hint DistSQL
* Update
---
distsql/parser/src/main/antlr4/imports/Keyword.g4 | 8 ----
.../parser/src/main/antlr4/imports/RALStatement.g4 | 4 --
.../parser/autogen/KernelDistSQLStatement.g4 | 1 -
.../antlr4/imports/readwrite-splitting/Keyword.g4 | 16 --------
.../imports/readwrite-splitting/RALStatement.g4 | 12 ------
.../autogen/ReadwriteSplittingDistSQLStatement.g4 | 3 --
.../src/main/antlr4/imports/sharding/Keyword.g4 | 24 ------------
.../main/antlr4/imports/sharding/RALStatement.g4 | 44 ----------------------
.../parser/autogen/ShardingDistSQLStatement.g4 | 7 +---
.../cases/parser/jaxb/RootSQLParserTestCases.java | 36 ------------------
...ShardingHintDatabaseValueStatementTestCase.java | 38 -------------------
...AddShardingHintTableValueStatementTestCase.java | 38 -------------------
.../statement/ral/ClearHintStatementTestCase.java | 26 -------------
...earReadwriteSplittingHintStatementTestCase.java | 26 -------------
.../ral/ClearShardingHintStatementTestCase.java | 26 -------------
...SetReadwriteSplittingHintStatementTestCase.java | 35 -----------------
...ShardingHintDatabaseValueStatementTestCase.java | 35 -----------------
...dwriteSplittingHintStatusStatementTestCase.java | 26 -------------
.../ShowShardingHintStatusStatementTestCase.java | 26 -------------
19 files changed, 1 insertion(+), 430 deletions(-)
diff --git a/distsql/parser/src/main/antlr4/imports/Keyword.g4
b/distsql/parser/src/main/antlr4/imports/Keyword.g4
index a5dd16dad7c..2210bebad55 100644
--- a/distsql/parser/src/main/antlr4/imports/Keyword.g4
+++ b/distsql/parser/src/main/antlr4/imports/Keyword.g4
@@ -43,10 +43,6 @@ ALTER
: A L T E R
;
-CLEAR
- : C L E A R
- ;
-
DROP
: D R O P
;
@@ -107,10 +103,6 @@ VARIABLES
: V A R I A B L E S
;
-HINT
- : H I N T
- ;
-
ENABLE
: E N A B L E
;
diff --git a/distsql/parser/src/main/antlr4/imports/RALStatement.g4
b/distsql/parser/src/main/antlr4/imports/RALStatement.g4
index ba8125ddaad..d127cfc2c14 100644
--- a/distsql/parser/src/main/antlr4/imports/RALStatement.g4
+++ b/distsql/parser/src/main/antlr4/imports/RALStatement.g4
@@ -47,10 +47,6 @@ showComputeNodes
: SHOW COMPUTE NODES
;
-clearHint
- : CLEAR HINT
- ;
-
refreshDatabaseMetadata
: REFRESH DATABASE METADATA databaseName? FROM GOVERNANCE CENTER
;
diff --git
a/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/KernelDistSQLStatement.g4
b/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/KernelDistSQLStatement.g4
index e8d8dab1637..7153f3112a7 100644
---
a/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/KernelDistSQLStatement.g4
+++
b/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/KernelDistSQLStatement.g4
@@ -28,7 +28,6 @@ execute
| setDistVariable
| showDistVariable
| showDistVariables
- | clearHint
| enableComputeNode
| disableComputeNode
| showComputeNodes
diff --git
a/features/readwrite-splitting/distsql/parser/src/main/antlr4/imports/readwrite-splitting/Keyword.g4
b/features/readwrite-splitting/distsql/parser/src/main/antlr4/imports/readwrite-splitting/Keyword.g4
index 2cd6d3dfae9..f31ab775cd7 100644
---
a/features/readwrite-splitting/distsql/parser/src/main/antlr4/imports/readwrite-splitting/Keyword.g4
+++
b/features/readwrite-splitting/distsql/parser/src/main/antlr4/imports/readwrite-splitting/Keyword.g4
@@ -35,10 +35,6 @@ DROP
: D R O P
;
-SET
- : S E T
- ;
-
SHOW
: S H O W
;
@@ -83,10 +79,6 @@ RULES
: R U L E S
;
-SOURCE
- : S O U R C E
- ;
-
RESOURCES
: R E S O U R C E S
;
@@ -95,14 +87,6 @@ STATUS
: S T A T U S
;
-HINT
- : H I N T
- ;
-
-CLEAR
- : C L E A R
- ;
-
ENABLE
: E N A B L E
;
diff --git
a/features/readwrite-splitting/distsql/parser/src/main/antlr4/imports/readwrite-splitting/RALStatement.g4
b/features/readwrite-splitting/distsql/parser/src/main/antlr4/imports/readwrite-splitting/RALStatement.g4
index b284df09b66..72130ee1c5d 100644
---
a/features/readwrite-splitting/distsql/parser/src/main/antlr4/imports/readwrite-splitting/RALStatement.g4
+++
b/features/readwrite-splitting/distsql/parser/src/main/antlr4/imports/readwrite-splitting/RALStatement.g4
@@ -19,18 +19,6 @@ grammar RALStatement;
import BaseRule;
-setReadwriteSplittingHintSource
- : SET READWRITE_SPLITTING HINT SOURCE EQ_ sourceValue
- ;
-
-showReadwriteSplittingHintStatus
- : SHOW READWRITE_SPLITTING HINT STATUS
- ;
-
-clearReadwriteSplittingHint
- : CLEAR READWRITE_SPLITTING HINT
- ;
-
alterReadwriteSplittingStorageUnitStatus
: ALTER READWRITE_SPLITTING RULE (groupName)? (ENABLE | DISABLE)
storageUnitName (FROM databaseName)?
;
diff --git
a/features/readwrite-splitting/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/ReadwriteSplittingDistSQLStatement.g4
b/features/readwrite-splitting/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/ReadwriteSplittingDistSQLStatement.g4
index c1a2c1743d2..fe1d5ddb161 100644
---
a/features/readwrite-splitting/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/ReadwriteSplittingDistSQLStatement.g4
+++
b/features/readwrite-splitting/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/ReadwriteSplittingDistSQLStatement.g4
@@ -24,9 +24,6 @@ execute
| alterReadwriteSplittingRule
| dropReadwriteSplittingRule
| showReadwriteSplittingRules
- | setReadwriteSplittingHintSource
- | showReadwriteSplittingHintStatus
- | clearReadwriteSplittingHint
| alterReadwriteSplittingStorageUnitStatus
| showStatusFromReadwriteSplittingRules
| countReadwriteSplittingRule
diff --git
a/features/sharding/distsql/parser/src/main/antlr4/imports/sharding/Keyword.g4
b/features/sharding/distsql/parser/src/main/antlr4/imports/sharding/Keyword.g4
index 70a9b540c04..b92d96487cd 100644
---
a/features/sharding/distsql/parser/src/main/antlr4/imports/sharding/Keyword.g4
+++
b/features/sharding/distsql/parser/src/main/antlr4/imports/sharding/Keyword.g4
@@ -119,30 +119,6 @@ HINT
: H I N T
;
-SET
- : S E T
- ;
-
-ADD
- : A D D
- ;
-
-DATABASE_VALUE
- : D A T A B A S E UL_ V A L U E
- ;
-
-TABLE_VALUE
- : T A B L E UL_ V A L U E
- ;
-
-STATUS
- : S T A T U S
- ;
-
-CLEAR
- : C L E A R
- ;
-
DEFAULT
: D E F A U L T
;
diff --git
a/features/sharding/distsql/parser/src/main/antlr4/imports/sharding/RALStatement.g4
b/features/sharding/distsql/parser/src/main/antlr4/imports/sharding/RALStatement.g4
deleted file mode 100644
index 1e08eb3a46b..00000000000
---
a/features/sharding/distsql/parser/src/main/antlr4/imports/sharding/RALStatement.g4
+++ /dev/null
@@ -1,44 +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.
- */
-
-grammar RALStatement;
-
-import BaseRule;
-
-setShardingHintDatabaseValue
- : SET SHARDING HINT DATABASE_VALUE EQ_ shardingValue
- ;
-
-addShardingHintDatabaseValue
- : ADD SHARDING HINT DATABASE_VALUE tableName EQ_ shardingValue
- ;
-
-addShardingHintTableValue
- : ADD SHARDING HINT TABLE_VALUE tableName EQ_ shardingValue
- ;
-
-showShardingHintStatus
- : SHOW SHARDING HINT STATUS
- ;
-
-clearShardingHint
- : CLEAR SHARDING HINT
- ;
-
-shardingValue
- : INT_ | STRING_
- ;
diff --git
a/features/sharding/distsql/parser/src/main/antlr4/sharding/org/apache/shardingsphere/distsql/parser/autogen/ShardingDistSQLStatement.g4
b/features/sharding/distsql/parser/src/main/antlr4/sharding/org/apache/shardingsphere/distsql/parser/autogen/ShardingDistSQLStatement.g4
index b3ad898d748..caf337776e5 100644
---
a/features/sharding/distsql/parser/src/main/antlr4/sharding/org/apache/shardingsphere/distsql/parser/autogen/ShardingDistSQLStatement.g4
+++
b/features/sharding/distsql/parser/src/main/antlr4/sharding/org/apache/shardingsphere/distsql/parser/autogen/ShardingDistSQLStatement.g4
@@ -17,7 +17,7 @@
grammar ShardingDistSQLStatement;
-import Symbol, RALStatement, RDLStatement, RQLStatement;
+import Symbol, RDLStatement, RQLStatement;
execute
: (createShardingTableRule
@@ -37,11 +37,6 @@ execute
| showShardingTableReferenceRules
| showBroadcastTableRules
| showShardingAlgorithms
- | setShardingHintDatabaseValue
- | addShardingHintDatabaseValue
- | addShardingHintTableValue
- | showShardingHintStatus
- | clearShardingHint
| showShardingTableNodes
| showShardingKeyGenerators
| dropShardingKeyGenerator
diff --git
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/RootSQLParserTestCases.java
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/RootSQLParserTestCases.java
index 3f965365b03..1a499278bd2 100644
---
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/RootSQLParserTestCases.java
+++
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/RootSQLParserTestCases.java
@@ -285,8 +285,6 @@ import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.s
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.dml.MergeStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.dml.SelectStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.dml.UpdateStatementTestCase;
-import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.AddShardingHintDatabaseValueStatementTestCase;
-import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.AddShardingHintTableValueStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.AlterComputeNodeStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.AlterLocalTransactionRuleStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.AlterReadwriteSplittingStorageUnitStatusStatementTestCase;
@@ -294,9 +292,6 @@ import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.s
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.AlterTrafficRuleStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.AlterXATransactionRuleStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.ApplyDistSQLStatementTestCase;
-import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.ClearHintStatementTestCase;
-import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.ClearReadwriteSplittingHintStatementTestCase;
-import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.ClearShardingHintStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.ConvertYamlConfigurationStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.DiscardDistSQLStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.ExportDatabaseConfigurationStatementTestCase;
@@ -307,8 +302,6 @@ import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.s
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.PrepareDistSQLStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.RefreshTableMetaDataStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.SetDistVariableStatementTestCase;
-import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.SetReadwriteSplittingHintStatementTestCase;
-import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.SetShardingHintDatabaseValueStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.ShowAuthorityRuleStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.ShowComputeNodeInfoStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.ShowComputeNodeModeStatementTestCase;
@@ -316,10 +309,8 @@ import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.s
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.ShowDistVariableStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.ShowDistVariablesStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.ShowMigrationListStatementTestCase;
-import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.ShowReadwriteSplittingHintStatusStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.ShowSQLParserRuleStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.ShowSQLTranslatorRuleStatementTestCase;
-import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.ShowShardingHintStatusStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.ShowStatusFromReadwriteSplittingRulesStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.ShowTableMetaDataStatementTestCase;
import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral.ShowTrafficRulesStatementTestCase;
@@ -1048,33 +1039,6 @@ public final class RootSQLParserTestCases {
@XmlElement(name = "set-dist-variable")
private final List<SetDistVariableStatementTestCase>
setDistVariableTestCases = new LinkedList<>();
- @XmlElement(name = "set-readwrite-splitting-hint-source")
- private final List<SetReadwriteSplittingHintStatementTestCase>
setReadwriteSplittingHintTestCases = new LinkedList<>();
-
- @XmlElement(name = "set-sharding-hint-database-value")
- private final List<SetShardingHintDatabaseValueStatementTestCase>
setShardingHintDatabaseValueTestCases = new LinkedList<>();
-
- @XmlElement(name = "add-sharding-hint-database-value")
- private final List<AddShardingHintDatabaseValueStatementTestCase>
addShardingHintDatabaseValueTestCases = new LinkedList<>();
-
- @XmlElement(name = "add-sharding-hint-table-value")
- private final List<AddShardingHintTableValueStatementTestCase>
addShardingHintTableValueTestCases = new LinkedList<>();
-
- @XmlElement(name = "show-readwrite-splitting-hint-source")
- private final List<ShowReadwriteSplittingHintStatusStatementTestCase>
showReadwriteSplittingHintStatusTestCases = new LinkedList<>();
-
- @XmlElement(name = "show-sharding-hint-status")
- private final List<ShowShardingHintStatusStatementTestCase>
showShardingHintStatusTestCases = new LinkedList<>();
-
- @XmlElement(name = "clear-readwrite-splitting-hint-source")
- private final List<ClearReadwriteSplittingHintStatementTestCase>
clearReadwriteSplittingHintTestCases = new LinkedList<>();
-
- @XmlElement(name = "clear-sharding-hint")
- private final List<ClearShardingHintStatementTestCase>
clearShardingHintTestCases = new LinkedList<>();
-
- @XmlElement(name = "clear-hint")
- private final List<ClearHintStatementTestCase> clearHintTestCases = new
LinkedList<>();
-
@XmlElement(name = "create-shadow-rule")
private final List<CreateShadowRuleStatementTestCase>
createShadowRuleTestCases = new LinkedList<>();
diff --git
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/AddShardingHintDatabaseValueStatementTestCase.java
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/AddShardingHintDatabaseValueStatementTestCase.java
deleted file mode 100644
index 06c47c10555..00000000000
---
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/AddShardingHintDatabaseValueStatementTestCase.java
+++ /dev/null
@@ -1,38 +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.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral;
-
-import lombok.Getter;
-import lombok.Setter;
-import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.SQLParserTestCase;
-
-import javax.xml.bind.annotation.XmlAttribute;
-
-/**
- * Add sharding hint database value statement test case.
- */
-@Getter
-@Setter
-public final class AddShardingHintDatabaseValueStatementTestCase extends
SQLParserTestCase {
-
- @XmlAttribute(name = "logic-table-name")
- private String logicTableName;
-
- @XmlAttribute(name = "sharding-value")
- private String shardingValue;
-}
diff --git
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/AddShardingHintTableValueStatementTestCase.java
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/AddShardingHintTableValueStatementTestCase.java
deleted file mode 100644
index 35390319d2a..00000000000
---
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/AddShardingHintTableValueStatementTestCase.java
+++ /dev/null
@@ -1,38 +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.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral;
-
-import lombok.Getter;
-import lombok.Setter;
-import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.SQLParserTestCase;
-
-import javax.xml.bind.annotation.XmlAttribute;
-
-/**
- * Add sharding hint table value statement test case.
- */
-@Getter
-@Setter
-public final class AddShardingHintTableValueStatementTestCase extends
SQLParserTestCase {
-
- @XmlAttribute(name = "logic-table-name")
- private String logicTableName;
-
- @XmlAttribute(name = "sharding-value")
- private String shardingValue;
-}
diff --git
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/ClearHintStatementTestCase.java
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/ClearHintStatementTestCase.java
deleted file mode 100644
index 67dc2fb152a..00000000000
---
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/ClearHintStatementTestCase.java
+++ /dev/null
@@ -1,26 +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.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral;
-
-import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.SQLParserTestCase;
-
-/**
- * Clear hint statement test case.
- */
-public final class ClearHintStatementTestCase extends SQLParserTestCase {
-}
diff --git
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/ClearReadwriteSplittingHintStatementTestCase.java
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/ClearReadwriteSplittingHintStatementTestCase.java
deleted file mode 100644
index cd04965ac1e..00000000000
---
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/ClearReadwriteSplittingHintStatementTestCase.java
+++ /dev/null
@@ -1,26 +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.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral;
-
-import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.SQLParserTestCase;
-
-/**
- * Clear readwrite-splitting hint statement test case.
- */
-public final class ClearReadwriteSplittingHintStatementTestCase extends
SQLParserTestCase {
-}
diff --git
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/ClearShardingHintStatementTestCase.java
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/ClearShardingHintStatementTestCase.java
deleted file mode 100644
index 6a6f2479287..00000000000
---
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/ClearShardingHintStatementTestCase.java
+++ /dev/null
@@ -1,26 +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.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral;
-
-import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.SQLParserTestCase;
-
-/**
- * Clear sharding hint statement test case.
- */
-public final class ClearShardingHintStatementTestCase extends
SQLParserTestCase {
-}
diff --git
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/SetReadwriteSplittingHintStatementTestCase.java
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/SetReadwriteSplittingHintStatementTestCase.java
deleted file mode 100644
index 4c931872f17..00000000000
---
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/SetReadwriteSplittingHintStatementTestCase.java
+++ /dev/null
@@ -1,35 +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.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral;
-
-import lombok.Getter;
-import lombok.Setter;
-import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.SQLParserTestCase;
-
-import javax.xml.bind.annotation.XmlAttribute;
-
-/**
- * Set readwrite-splitting hint statement test case.
- */
-@Getter
-@Setter
-public final class SetReadwriteSplittingHintStatementTestCase extends
SQLParserTestCase {
-
- @XmlAttribute(name = "source-name")
- private String source;
-}
diff --git
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/SetShardingHintDatabaseValueStatementTestCase.java
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/SetShardingHintDatabaseValueStatementTestCase.java
deleted file mode 100644
index 1e49205c66b..00000000000
---
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/SetShardingHintDatabaseValueStatementTestCase.java
+++ /dev/null
@@ -1,35 +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.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral;
-
-import lombok.Getter;
-import lombok.Setter;
-import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.SQLParserTestCase;
-
-import javax.xml.bind.annotation.XmlAttribute;
-
-/**
- * Set sharding hint database value statement test case.
- */
-@Getter
-@Setter
-public final class SetShardingHintDatabaseValueStatementTestCase extends
SQLParserTestCase {
-
- @XmlAttribute(name = "sharding-value")
- private String shardingValue;
-}
diff --git
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/ShowReadwriteSplittingHintStatusStatementTestCase.java
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/ShowReadwriteSplittingHintStatusStatementTestCase.java
deleted file mode 100644
index 756717107fa..00000000000
---
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/ShowReadwriteSplittingHintStatusStatementTestCase.java
+++ /dev/null
@@ -1,26 +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.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral;
-
-import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.SQLParserTestCase;
-
-/**
- * Show readwrite-splitting hint status statement test case.
- */
-public final class ShowReadwriteSplittingHintStatusStatementTestCase extends
SQLParserTestCase {
-}
diff --git
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/ShowShardingHintStatusStatementTestCase.java
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/ShowShardingHintStatusStatementTestCase.java
deleted file mode 100644
index c0ace164e8e..00000000000
---
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/internal/cases/parser/jaxb/statement/ral/ShowShardingHintStatusStatementTestCase.java
+++ /dev/null
@@ -1,26 +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.test.it.sql.parser.internal.cases.parser.jaxb.statement.ral;
-
-import
org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.SQLParserTestCase;
-
-/**
- * Show sharding hint status statement test case.
- */
-public final class ShowShardingHintStatusStatementTestCase extends
SQLParserTestCase {
-}