This is an automated email from the ASF dual-hosted git repository.
zhaojinchao 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 28958133372 Refactor DistSQL syntax show xxx implementations to show
xxx plugins (#30080)
28958133372 is described below
commit 28958133372d3842c7e69b32a8a7df990535b31c
Author: Raigor <[email protected]>
AuthorDate: Fri Feb 9 17:28:37 2024 +0800
Refactor DistSQL syntax show xxx implementations to show xxx plugins
(#30080)
---
.../parser/src/main/antlr4/imports/encrypt/Keyword.g4 | 4 ++--
.../parser/src/main/antlr4/imports/encrypt/RALStatement.g4 | 4 ++--
.../distsql/parser/autogen/EncryptDistSQLStatement.g4 | 2 +-
.../distsql/parser/core/EncryptDistSQLStatementVisitor.java | 4 ++--
.../distsql/parser/src/main/antlr4/imports/mask/Keyword.g4 | 4 ++--
.../parser/src/main/antlr4/imports/mask/RALStatement.g4 | 4 ++--
.../distsql/parser/autogen/MaskDistSQLStatement.g4 | 2 +-
.../distsql/parser/core/MaskDistSQLStatementVisitor.java | 4 ++--
.../src/main/antlr4/imports/readwrite-splitting/Keyword.g4 | 4 ++--
.../main/antlr4/imports/readwrite-splitting/RALStatement.g4 | 4 ++--
.../parser/autogen/ReadwriteSplittingDistSQLStatement.g4 | 2 +-
.../core/ReadwriteSplittingDistSQLStatementVisitor.java | 4 ++--
.../distsql/parser/src/main/antlr4/imports/shadow/Keyword.g4 | 4 ++--
.../parser/src/main/antlr4/imports/shadow/RALStatement.g4 | 4 ++--
.../distsql/parser/autogen/ShadowDistSQLStatement.g4 | 2 +-
.../distsql/parser/core/ShadowDistSQLStatementVisitor.java | 4 ++--
.../parser/src/main/antlr4/imports/sharding/Keyword.g4 | 4 ++--
.../parser/src/main/antlr4/imports/sharding/RALStatement.g4 | 4 ++--
.../distsql/parser/autogen/ShardingDistSQLStatement.g4 | 2 +-
.../distsql/parser/core/ShardingDistSQLStatementVisitor.java | 4 ++--
parser/distsql/engine/src/main/antlr4/imports/Keyword.g4 | 4 ++--
.../distsql/engine/src/main/antlr4/imports/RALStatement.g4 | 12 ++++++------
.../distsql/parser/autogen/KernelDistSQLStatement.g4 | 4 ++--
.../parser/core/kernel/KernelDistSQLStatementVisitor.java | 10 +++++-----
24 files changed, 50 insertions(+), 50 deletions(-)
diff --git
a/features/encrypt/distsql/parser/src/main/antlr4/imports/encrypt/Keyword.g4
b/features/encrypt/distsql/parser/src/main/antlr4/imports/encrypt/Keyword.g4
index 78520e163a0..d95ec10b7ee 100644
--- a/features/encrypt/distsql/parser/src/main/antlr4/imports/encrypt/Keyword.g4
+++ b/features/encrypt/distsql/parser/src/main/antlr4/imports/encrypt/Keyword.g4
@@ -151,6 +151,6 @@ ALGORITHM
: A L G O R I T H M
;
-IMPLEMENTATIONS
- : I M P L E M E N T A T I O N S
+PLUGINS
+ : P L U G I N S
;
diff --git
a/features/encrypt/distsql/parser/src/main/antlr4/imports/encrypt/RALStatement.g4
b/features/encrypt/distsql/parser/src/main/antlr4/imports/encrypt/RALStatement.g4
index b062d97f04b..0c43bb59626 100644
---
a/features/encrypt/distsql/parser/src/main/antlr4/imports/encrypt/RALStatement.g4
+++
b/features/encrypt/distsql/parser/src/main/antlr4/imports/encrypt/RALStatement.g4
@@ -19,6 +19,6 @@ grammar RALStatement;
import BaseRule;
-showEncryptAlgorithmImplementations
- : SHOW ENCRYPT ALGORITHM IMPLEMENTATIONS
+showEncryptAlgorithmPlugins
+ : SHOW ENCRYPT ALGORITHM PLUGINS
;
diff --git
a/features/encrypt/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/EncryptDistSQLStatement.g4
b/features/encrypt/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/EncryptDistSQLStatement.g4
index 8718919899c..929314e03bd 100644
---
a/features/encrypt/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/EncryptDistSQLStatement.g4
+++
b/features/encrypt/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/EncryptDistSQLStatement.g4
@@ -25,6 +25,6 @@ execute
| dropEncryptRule
| showEncryptRules
| countEncryptRule
- | showEncryptAlgorithmImplementations
+ | showEncryptAlgorithmPlugins
) SEMI_? EOF
;
diff --git
a/features/encrypt/distsql/parser/src/main/java/org/apache/shardingsphere/encrypt/distsql/parser/core/EncryptDistSQLStatementVisitor.java
b/features/encrypt/distsql/parser/src/main/java/org/apache/shardingsphere/encrypt/distsql/parser/core/EncryptDistSQLStatementVisitor.java
index 05e4408eee8..1209b320b65 100644
---
a/features/encrypt/distsql/parser/src/main/java/org/apache/shardingsphere/encrypt/distsql/parser/core/EncryptDistSQLStatementVisitor.java
+++
b/features/encrypt/distsql/parser/src/main/java/org/apache/shardingsphere/encrypt/distsql/parser/core/EncryptDistSQLStatementVisitor.java
@@ -29,7 +29,7 @@ import
org.apache.shardingsphere.distsql.parser.autogen.EncryptDistSQLStatementP
import
org.apache.shardingsphere.distsql.parser.autogen.EncryptDistSQLStatementParser.EncryptRuleDefinitionContext;
import
org.apache.shardingsphere.distsql.parser.autogen.EncryptDistSQLStatementParser.PropertiesDefinitionContext;
import
org.apache.shardingsphere.distsql.parser.autogen.EncryptDistSQLStatementParser.PropertyContext;
-import
org.apache.shardingsphere.distsql.parser.autogen.EncryptDistSQLStatementParser.ShowEncryptAlgorithmImplementationsContext;
+import
org.apache.shardingsphere.distsql.parser.autogen.EncryptDistSQLStatementParser.ShowEncryptAlgorithmPluginsContext;
import
org.apache.shardingsphere.distsql.parser.autogen.EncryptDistSQLStatementParser.ShowEncryptRulesContext;
import
org.apache.shardingsphere.distsql.parser.autogen.EncryptDistSQLStatementParser.TableNameContext;
import org.apache.shardingsphere.distsql.segment.AlgorithmSegment;
@@ -141,7 +141,7 @@ public final class EncryptDistSQLStatementVisitor extends
EncryptDistSQLStatemen
}
@Override
- public ASTNode visitShowEncryptAlgorithmImplementations(final
ShowEncryptAlgorithmImplementationsContext ctx) {
+ public ASTNode visitShowEncryptAlgorithmPlugins(final
ShowEncryptAlgorithmPluginsContext ctx) {
return new ShowPluginsStatement("ENCRYPT_ALGORITHM");
}
}
diff --git
a/features/mask/distsql/parser/src/main/antlr4/imports/mask/Keyword.g4
b/features/mask/distsql/parser/src/main/antlr4/imports/mask/Keyword.g4
index ec098043177..510c5463171 100644
--- a/features/mask/distsql/parser/src/main/antlr4/imports/mask/Keyword.g4
+++ b/features/mask/distsql/parser/src/main/antlr4/imports/mask/Keyword.g4
@@ -143,6 +143,6 @@ ALGORITHM
: A L G O R I T H M
;
-IMPLEMENTATIONS
- : I M P L E M E N T A T I O N S
+PLUGINS
+ : P L U G I N S
;
diff --git
a/features/mask/distsql/parser/src/main/antlr4/imports/mask/RALStatement.g4
b/features/mask/distsql/parser/src/main/antlr4/imports/mask/RALStatement.g4
index e864cd13c28..b99b16a58d5 100644
--- a/features/mask/distsql/parser/src/main/antlr4/imports/mask/RALStatement.g4
+++ b/features/mask/distsql/parser/src/main/antlr4/imports/mask/RALStatement.g4
@@ -19,6 +19,6 @@ grammar RALStatement;
import BaseRule;
-showMaskAlgorithmImplementations
- : SHOW MASK ALGORITHM IMPLEMENTATIONS
+showMaskAlgorithmPlugins
+ : SHOW MASK ALGORITHM PLUGINS
;
diff --git
a/features/mask/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/MaskDistSQLStatement.g4
b/features/mask/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/MaskDistSQLStatement.g4
index bb5f4626f83..440aea9b308 100644
---
a/features/mask/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/MaskDistSQLStatement.g4
+++
b/features/mask/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/MaskDistSQLStatement.g4
@@ -25,6 +25,6 @@ execute
| dropMaskRule
| showMaskRules
| countMaskRule
- | showMaskAlgorithmImplementations
+ | showMaskAlgorithmPlugins
) SEMI_? EOF
;
diff --git
a/features/mask/distsql/parser/src/main/java/org/apache/shardingsphere/mask/distsql/parser/core/MaskDistSQLStatementVisitor.java
b/features/mask/distsql/parser/src/main/java/org/apache/shardingsphere/mask/distsql/parser/core/MaskDistSQLStatementVisitor.java
index f3523cf4424..a35d24181c9 100644
---
a/features/mask/distsql/parser/src/main/java/org/apache/shardingsphere/mask/distsql/parser/core/MaskDistSQLStatementVisitor.java
+++
b/features/mask/distsql/parser/src/main/java/org/apache/shardingsphere/mask/distsql/parser/core/MaskDistSQLStatementVisitor.java
@@ -29,7 +29,7 @@ import
org.apache.shardingsphere.distsql.parser.autogen.MaskDistSQLStatementPars
import
org.apache.shardingsphere.distsql.parser.autogen.MaskDistSQLStatementParser.MaskRuleDefinitionContext;
import
org.apache.shardingsphere.distsql.parser.autogen.MaskDistSQLStatementParser.PropertiesDefinitionContext;
import
org.apache.shardingsphere.distsql.parser.autogen.MaskDistSQLStatementParser.PropertyContext;
-import
org.apache.shardingsphere.distsql.parser.autogen.MaskDistSQLStatementParser.ShowMaskAlgorithmImplementationsContext;
+import
org.apache.shardingsphere.distsql.parser.autogen.MaskDistSQLStatementParser.ShowMaskAlgorithmPluginsContext;
import
org.apache.shardingsphere.distsql.parser.autogen.MaskDistSQLStatementParser.ShowMaskRulesContext;
import org.apache.shardingsphere.distsql.segment.AlgorithmSegment;
import
org.apache.shardingsphere.distsql.statement.ral.queryable.show.ShowPluginsStatement;
@@ -115,7 +115,7 @@ public final class MaskDistSQLStatementVisitor extends
MaskDistSQLStatementBaseV
}
@Override
- public ASTNode visitShowMaskAlgorithmImplementations(final
ShowMaskAlgorithmImplementationsContext ctx) {
+ public ASTNode visitShowMaskAlgorithmPlugins(final
ShowMaskAlgorithmPluginsContext ctx) {
return new ShowPluginsStatement("MASK_ALGORITHM");
}
}
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 bd2c12791d5..769ec688900 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
@@ -151,6 +151,6 @@ ALGORITHM
: A L G O R I T H M
;
-IMPLEMENTATIONS
- : I M P L E M E N T A T I O N S
+PLUGINS
+ : P L U G I N S
;
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 84fa3778f2b..ecf2df35e0c 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
@@ -27,6 +27,6 @@ showStatusFromReadwriteSplittingRules
: SHOW STATUS FROM READWRITE_SPLITTING (RULES | RULE groupName) (FROM
databaseName)?
;
-showReadQueryLoadBalanceAlgorithmImplementations
- : SHOW READ QUERY LOAD BALANCE ALGORITHM IMPLEMENTATIONS
+showReadQueryLoadBalanceAlgorithmPlugins
+ : SHOW READ QUERY LOAD BALANCE ALGORITHM PLUGINS
;
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 e7de23defcf..c3a7ab2a868 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
@@ -27,6 +27,6 @@ execute
| alterReadwriteSplittingStorageUnitStatus
| showStatusFromReadwriteSplittingRules
| countReadwriteSplittingRule
- | showReadQueryLoadBalanceAlgorithmImplementations
+ | showReadQueryLoadBalanceAlgorithmPlugins
) SEMI_? EOF
;
diff --git
a/features/readwrite-splitting/distsql/parser/src/main/java/org/apache/shardingsphere/readwritesplitting/distsql/parser/core/ReadwriteSplittingDistSQLStatementVisitor.java
b/features/readwrite-splitting/distsql/parser/src/main/java/org/apache/shardingsphere/readwritesplitting/distsql/parser/core/ReadwriteSplittingDistSQLStatementVisitor.java
index 475712a4d6f..480c63ef948 100644
---
a/features/readwrite-splitting/distsql/parser/src/main/java/org/apache/shardingsphere/readwritesplitting/distsql/parser/core/ReadwriteSplittingDistSQLStatementVisitor.java
+++
b/features/readwrite-splitting/distsql/parser/src/main/java/org/apache/shardingsphere/readwritesplitting/distsql/parser/core/ReadwriteSplittingDistSQLStatementVisitor.java
@@ -29,7 +29,7 @@ import
org.apache.shardingsphere.distsql.parser.autogen.ReadwriteSplittingDistSQ
import
org.apache.shardingsphere.distsql.parser.autogen.ReadwriteSplittingDistSQLStatementParser.PropertiesDefinitionContext;
import
org.apache.shardingsphere.distsql.parser.autogen.ReadwriteSplittingDistSQLStatementParser.PropertyContext;
import
org.apache.shardingsphere.distsql.parser.autogen.ReadwriteSplittingDistSQLStatementParser.ReadwriteSplittingRuleDefinitionContext;
-import
org.apache.shardingsphere.distsql.parser.autogen.ReadwriteSplittingDistSQLStatementParser.ShowReadQueryLoadBalanceAlgorithmImplementationsContext;
+import
org.apache.shardingsphere.distsql.parser.autogen.ReadwriteSplittingDistSQLStatementParser.ShowReadQueryLoadBalanceAlgorithmPluginsContext;
import
org.apache.shardingsphere.distsql.parser.autogen.ReadwriteSplittingDistSQLStatementParser.ShowReadwriteSplittingRulesContext;
import
org.apache.shardingsphere.distsql.parser.autogen.ReadwriteSplittingDistSQLStatementParser.ShowStatusFromReadwriteSplittingRulesContext;
import org.apache.shardingsphere.distsql.segment.AlgorithmSegment;
@@ -132,7 +132,7 @@ public final class
ReadwriteSplittingDistSQLStatementVisitor extends ReadwriteSp
}
@Override
- public ASTNode visitShowReadQueryLoadBalanceAlgorithmImplementations(final
ShowReadQueryLoadBalanceAlgorithmImplementationsContext ctx) {
+ public ASTNode visitShowReadQueryLoadBalanceAlgorithmPlugins(final
ShowReadQueryLoadBalanceAlgorithmPluginsContext ctx) {
return new ShowPluginsStatement("READ_QUERY_LOAD_BALANCE_ALGORITHM");
}
}
diff --git
a/features/shadow/distsql/parser/src/main/antlr4/imports/shadow/Keyword.g4
b/features/shadow/distsql/parser/src/main/antlr4/imports/shadow/Keyword.g4
index 2d43a80c385..ec29d379420 100644
--- a/features/shadow/distsql/parser/src/main/antlr4/imports/shadow/Keyword.g4
+++ b/features/shadow/distsql/parser/src/main/antlr4/imports/shadow/Keyword.g4
@@ -151,6 +151,6 @@ NOT
: N O T
;
-IMPLEMENTATIONS
- : I M P L E M E N T A T I O N S
+PLUGINS
+ : P L U G I N S
;
diff --git
a/features/shadow/distsql/parser/src/main/antlr4/imports/shadow/RALStatement.g4
b/features/shadow/distsql/parser/src/main/antlr4/imports/shadow/RALStatement.g4
index 85a3a131d78..daba7db1f0f 100644
---
a/features/shadow/distsql/parser/src/main/antlr4/imports/shadow/RALStatement.g4
+++
b/features/shadow/distsql/parser/src/main/antlr4/imports/shadow/RALStatement.g4
@@ -19,6 +19,6 @@ grammar RALStatement;
import BaseRule;
-showShadowAlgorithmImplementations
- : SHOW SHADOW ALGORITHM IMPLEMENTATIONS
+showShadowAlgorithmPlugins
+ : SHOW SHADOW ALGORITHM PLUGINS
;
diff --git
a/features/shadow/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/ShadowDistSQLStatement.g4
b/features/shadow/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/ShadowDistSQLStatement.g4
index 9c4bfd65d0e..1f3e59e6146 100644
---
a/features/shadow/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/ShadowDistSQLStatement.g4
+++
b/features/shadow/distsql/parser/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/ShadowDistSQLStatement.g4
@@ -32,6 +32,6 @@ execute
| createDefaultShadowAlgorithm
| alterDefaultShadowAlgorithm
| countShadowRule
- | showShadowAlgorithmImplementations
+ | showShadowAlgorithmPlugins
) SEMI_? EOF
;
diff --git
a/features/shadow/distsql/parser/src/main/java/org/apache/shardingsphere/shadow/distsql/parser/core/ShadowDistSQLStatementVisitor.java
b/features/shadow/distsql/parser/src/main/java/org/apache/shardingsphere/shadow/distsql/parser/core/ShadowDistSQLStatementVisitor.java
index f4446f1a5c3..9dcc7e7c120 100644
---
a/features/shadow/distsql/parser/src/main/java/org/apache/shardingsphere/shadow/distsql/parser/core/ShadowDistSQLStatementVisitor.java
+++
b/features/shadow/distsql/parser/src/main/java/org/apache/shardingsphere/shadow/distsql/parser/core/ShadowDistSQLStatementVisitor.java
@@ -33,7 +33,7 @@ import
org.apache.shardingsphere.distsql.parser.autogen.ShadowDistSQLStatementPa
import
org.apache.shardingsphere.distsql.parser.autogen.ShadowDistSQLStatementParser.PropertyContext;
import
org.apache.shardingsphere.distsql.parser.autogen.ShadowDistSQLStatementParser.ShadowRuleDefinitionContext;
import
org.apache.shardingsphere.distsql.parser.autogen.ShadowDistSQLStatementParser.ShowDefaultShadowAlgorithmContext;
-import
org.apache.shardingsphere.distsql.parser.autogen.ShadowDistSQLStatementParser.ShowShadowAlgorithmImplementationsContext;
+import
org.apache.shardingsphere.distsql.parser.autogen.ShadowDistSQLStatementParser.ShowShadowAlgorithmPluginsContext;
import
org.apache.shardingsphere.distsql.parser.autogen.ShadowDistSQLStatementParser.ShowShadowAlgorithmsContext;
import
org.apache.shardingsphere.distsql.parser.autogen.ShadowDistSQLStatementParser.ShowShadowRulesContext;
import
org.apache.shardingsphere.distsql.parser.autogen.ShadowDistSQLStatementParser.ShowShadowTableRulesContext;
@@ -205,7 +205,7 @@ public final class ShadowDistSQLStatementVisitor extends
ShadowDistSQLStatementB
}
@Override
- public ASTNode visitShowShadowAlgorithmImplementations(final
ShowShadowAlgorithmImplementationsContext ctx) {
+ public ASTNode visitShowShadowAlgorithmPlugins(final
ShowShadowAlgorithmPluginsContext ctx) {
return new ShowPluginsStatement("SHADOW_ALGORITHM");
}
}
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 1649f15fd07..995708bc4ff 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
@@ -279,6 +279,6 @@ NONE
: N O N E
;
-IMPLEMENTATIONS
- : I M P L E M E N T A T I O N S
+PLUGINS
+ : P L U G I N S
;
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
index b21e64d015b..f7d6b7c3532 100644
---
a/features/sharding/distsql/parser/src/main/antlr4/imports/sharding/RALStatement.g4
+++
b/features/sharding/distsql/parser/src/main/antlr4/imports/sharding/RALStatement.g4
@@ -19,6 +19,6 @@ grammar RALStatement;
import BaseRule;
-showShardingAlgorithmImplementations
- : SHOW SHARDING ALGORITHM IMPLEMENTATIONS
+showShardingAlgorithmPlugins
+ : SHOW SHARDING ALGORITHM PLUGINS
;
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 e19fa5cd9e2..bc703656405 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
@@ -46,6 +46,6 @@ execute
| showUnusedShardingKeyGenerators
| showUnusedShardingAuditors
| countShardingRule
- | showShardingAlgorithmImplementations
+ | showShardingAlgorithmPlugins
) SEMI_? EOF
;
diff --git
a/features/sharding/distsql/parser/src/main/java/org/apache/shardingsphere/sharding/distsql/parser/core/ShardingDistSQLStatementVisitor.java
b/features/sharding/distsql/parser/src/main/java/org/apache/shardingsphere/sharding/distsql/parser/core/ShardingDistSQLStatementVisitor.java
index 4821cfc481c..31ea8c1ae9b 100644
---
a/features/sharding/distsql/parser/src/main/java/org/apache/shardingsphere/sharding/distsql/parser/core/ShardingDistSQLStatementVisitor.java
+++
b/features/sharding/distsql/parser/src/main/java/org/apache/shardingsphere/sharding/distsql/parser/core/ShardingDistSQLStatementVisitor.java
@@ -46,7 +46,7 @@ import
org.apache.shardingsphere.distsql.parser.autogen.ShardingDistSQLStatement
import
org.apache.shardingsphere.distsql.parser.autogen.ShardingDistSQLStatementParser.ShardingTableRuleContext;
import
org.apache.shardingsphere.distsql.parser.autogen.ShardingDistSQLStatementParser.ShardingTableRuleDefinitionContext;
import
org.apache.shardingsphere.distsql.parser.autogen.ShardingDistSQLStatementParser.ShowDefaultShardingStrategyContext;
-import
org.apache.shardingsphere.distsql.parser.autogen.ShardingDistSQLStatementParser.ShowShardingAlgorithmImplementationsContext;
+import
org.apache.shardingsphere.distsql.parser.autogen.ShardingDistSQLStatementParser.ShowShardingAlgorithmPluginsContext;
import
org.apache.shardingsphere.distsql.parser.autogen.ShardingDistSQLStatementParser.ShowShardingAlgorithmsContext;
import
org.apache.shardingsphere.distsql.parser.autogen.ShardingDistSQLStatementParser.ShowShardingAuditorsContext;
import
org.apache.shardingsphere.distsql.parser.autogen.ShardingDistSQLStatementParser.ShowShardingKeyGeneratorsContext;
@@ -404,7 +404,7 @@ public final class ShardingDistSQLStatementVisitor extends
ShardingDistSQLStatem
}
@Override
- public ASTNode visitShowShardingAlgorithmImplementations(final
ShowShardingAlgorithmImplementationsContext ctx) {
+ public ASTNode visitShowShardingAlgorithmPlugins(final
ShowShardingAlgorithmPluginsContext ctx) {
return new ShowPluginsStatement("SHARDING_ALGORITHM");
}
}
diff --git a/parser/distsql/engine/src/main/antlr4/imports/Keyword.g4
b/parser/distsql/engine/src/main/antlr4/imports/Keyword.g4
index a0c6844959c..8809526da79 100644
--- a/parser/distsql/engine/src/main/antlr4/imports/Keyword.g4
+++ b/parser/distsql/engine/src/main/antlr4/imports/Keyword.g4
@@ -351,8 +351,8 @@ BROADCAST
: B R O A D C A S T
;
-IMPLEMENTATIONS
- : I M P L E M E N T A T I O N S
+PLUGINS
+ : P L U G I N S
;
OF
diff --git a/parser/distsql/engine/src/main/antlr4/imports/RALStatement.g4
b/parser/distsql/engine/src/main/antlr4/imports/RALStatement.g4
index a74701033fd..6e20ae6b3fb 100644
--- a/parser/distsql/engine/src/main/antlr4/imports/RALStatement.g4
+++ b/parser/distsql/engine/src/main/antlr4/imports/RALStatement.g4
@@ -115,12 +115,12 @@ unlockCluster
: UNLOCK CLUSTER
;
-showServiceProviderImplementations
- : SHOW IMPLEMENTATIONS OF serviceProviderInterface
+showPluginImplementations
+ : SHOW PLUGINS OF pluginClass
;
-showKeyGenerateAlgorithmImplementations
- : SHOW KEY GENERATE ALGORITHM IMPLEMENTATIONS
+showKeyGenerateAlgorithmPlugins
+ : SHOW KEY GENERATE ALGORITHM PLUGINS
;
transmissionRule
@@ -211,6 +211,6 @@ likePattern
: STRING_
;
-serviceProviderInterface
- : IDENTIFIER_ | STRING_
+pluginClass
+ : STRING_
;
diff --git
a/parser/distsql/engine/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/KernelDistSQLStatement.g4
b/parser/distsql/engine/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/KernelDistSQLStatement.g4
index 5b1bf9a89cf..79f3e142795 100644
---
a/parser/distsql/engine/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/KernelDistSQLStatement.g4
+++
b/parser/distsql/engine/src/main/antlr4/org/apache/shardingsphere/distsql/parser/autogen/KernelDistSQLStatement.g4
@@ -50,7 +50,7 @@ execute
| alterMigrationRule
| lockCluster
| unlockCluster
- | showServiceProviderImplementations
- | showKeyGenerateAlgorithmImplementations
+ | showPluginImplementations
+ | showKeyGenerateAlgorithmPlugins
) SEMI_? EOF
;
diff --git
a/parser/distsql/engine/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java
b/parser/distsql/engine/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java
index f8ca21bd83e..20972fedeaf 100644
---
a/parser/distsql/engine/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java
+++
b/parser/distsql/engine/src/main/java/org/apache/shardingsphere/distsql/parser/core/kernel/KernelDistSQLStatementVisitor.java
@@ -55,11 +55,11 @@ import
org.apache.shardingsphere.distsql.parser.autogen.KernelDistSQLStatementPa
import
org.apache.shardingsphere.distsql.parser.autogen.KernelDistSQLStatementParser.ShowComputeNodesContext;
import
org.apache.shardingsphere.distsql.parser.autogen.KernelDistSQLStatementParser.ShowDistVariableContext;
import
org.apache.shardingsphere.distsql.parser.autogen.KernelDistSQLStatementParser.ShowDistVariablesContext;
-import
org.apache.shardingsphere.distsql.parser.autogen.KernelDistSQLStatementParser.ShowKeyGenerateAlgorithmImplementationsContext;
+import
org.apache.shardingsphere.distsql.parser.autogen.KernelDistSQLStatementParser.ShowKeyGenerateAlgorithmPluginsContext;
import
org.apache.shardingsphere.distsql.parser.autogen.KernelDistSQLStatementParser.ShowLogicalTablesContext;
import
org.apache.shardingsphere.distsql.parser.autogen.KernelDistSQLStatementParser.ShowMigrationRuleContext;
+import
org.apache.shardingsphere.distsql.parser.autogen.KernelDistSQLStatementParser.ShowPluginImplementationsContext;
import
org.apache.shardingsphere.distsql.parser.autogen.KernelDistSQLStatementParser.ShowRulesUsedStorageUnitContext;
-import
org.apache.shardingsphere.distsql.parser.autogen.KernelDistSQLStatementParser.ShowServiceProviderImplementationsContext;
import
org.apache.shardingsphere.distsql.parser.autogen.KernelDistSQLStatementParser.ShowStorageUnitsContext;
import
org.apache.shardingsphere.distsql.parser.autogen.KernelDistSQLStatementParser.ShowTableMetadataContext;
import
org.apache.shardingsphere.distsql.parser.autogen.KernelDistSQLStatementParser.StorageUnitDefinitionContext;
@@ -406,12 +406,12 @@ public final class KernelDistSQLStatementVisitor extends
KernelDistSQLStatementB
}
@Override
- public ASTNode visitShowServiceProviderImplementations(final
ShowServiceProviderImplementationsContext ctx) {
- return new ShowPluginsStatement("COMMON",
getIdentifierValue(ctx.serviceProviderInterface()));
+ public ASTNode visitShowPluginImplementations(final
ShowPluginImplementationsContext ctx) {
+ return new ShowPluginsStatement("COMMON",
getIdentifierValue(ctx.pluginClass()));
}
@Override
- public ASTNode visitShowKeyGenerateAlgorithmImplementations(final
ShowKeyGenerateAlgorithmImplementationsContext ctx) {
+ public ASTNode visitShowKeyGenerateAlgorithmPlugins(final
ShowKeyGenerateAlgorithmPluginsContext ctx) {
return new ShowPluginsStatement("KEY_GENERATE_ALGORITHM");
}
}