This is an automated email from the ASF dual-hosted git repository.

zhonghongsheng 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 b63ad5cd3d1 Refactor DistSQL SHOW LOAD BALANCE ALGORITHM PLUGINS 
(#30317)
b63ad5cd3d1 is described below

commit b63ad5cd3d1f63f214cb245998ba30f7125731bc
Author: Raigor <[email protected]>
AuthorDate: Tue Feb 27 18:44:15 2024 +0800

    Refactor DistSQL SHOW LOAD BALANCE ALGORITHM PLUGINS (#30317)
---
 ....md => show-load-balance-algorithm-plugins.cn.md} | 14 +++++++-------
 ....md => show-load-balance-algorithm-plugins.en.md} | 14 +++++++-------
 ...dler.executor.ral.plugin.PluginTypeAndClassMapper | 18 ------------------
 .../antlr4/imports/readwrite-splitting/Keyword.g4    | 20 --------------------
 .../imports/readwrite-splitting/RALStatement.g4      |  4 ----
 .../autogen/ReadwriteSplittingDistSQLStatement.g4    |  1 -
 .../ReadwriteSplittingDistSQLStatementVisitor.java   |  9 +--------
 infra/distsql-handler/pom.xml                        |  5 +++++
 .../type/LoadBalanceAlgorithmTypeAndClassMapper.java |  8 ++++----
 ...dler.executor.ral.plugin.PluginTypeAndClassMapper |  1 +
 .../engine/src/main/antlr4/imports/Keyword.g4        |  8 ++++++++
 .../engine/src/main/antlr4/imports/RALStatement.g4   |  4 ++++
 .../distsql/parser/autogen/KernelDistSQLStatement.g4 |  1 +
 .../core/kernel/KernelDistSQLStatementVisitor.java   |  6 ++++++
 14 files changed, 44 insertions(+), 69 deletions(-)

diff --git 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-read-query-load-balance-algorithm-plugins.cn.md
 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-load-balance-algorithm-plugins.cn.md
similarity index 66%
rename from 
docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-read-query-load-balance-algorithm-plugins.cn.md
rename to 
docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-load-balance-algorithm-plugins.cn.md
index 63b037eec38..bbcde7e6a1d 100644
--- 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-read-query-load-balance-algorithm-plugins.cn.md
+++ 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-load-balance-algorithm-plugins.cn.md
@@ -1,19 +1,19 @@
 +++
-title = "SHOW READ QUERY LOAD BALANCE ALGORITHM PLUGINS"
+title = "SHOW LOAD BALANCE ALGORITHM PLUGINS"
 weight = 3
 +++
 
 ### 描述
 
-`SHOW READ QUERY LOAD BALANCE ALGORITHM PLUGINS` 语法用于查询 
`org.apache.shardingsphere.infra.algorithm.load.balancer.core.LoadBalanceAlgorithm`
 接口的所有实现类。
+`SHOW LOAD BALANCE ALGORITHM PLUGINS` 语法用于查询 
`org.apache.shardingsphere.infra.algorithm.load.balancer.core.LoadBalanceAlgorithm`
 接口的所有实现类。
 
 ### 语法
 
 {{< tabs >}}
 {{% tab name="语法" %}}
 ```sql
-showReadQueryLoadBalanceAlgorithmPlugins ::=
-  'SHOW' 'READ' 'QUERY' 'LOAD' 'BALANCE' 'ALGORITHM' 'PLUGINS'
+showLoadBalanceAlgorithmPlugins ::=
+  'SHOW' 'LOAD' 'BALANCE' 'ALGORITHM' 'PLUGINS'
 ```
 {{% /tab %}}
 {{% tab name="铁路图" %}}
@@ -34,11 +34,11 @@ showReadQueryLoadBalanceAlgorithmPlugins ::=
 - 查询 
`org.apache.shardingsphere.infra.algorithm.load.balancer.core.LoadBalanceAlgorithm`
 接口的所有实现类
 
 ```sql
-SHOW READ QUERY LOAD BALANCE ALGORITHM PLUGINS
+SHOW LOAD BALANCE ALGORITHM PLUGINS
 ```
 
 ```sql
-SHOW READ QUERY LOAD BALANCE ALGORITHM PLUGINS;
+SHOW LOAD BALANCE ALGORITHM PLUGINS;
 +-------------+--------------+-------------+
 | type        | type_aliases | description |
 +-------------+--------------+-------------+
@@ -51,7 +51,7 @@ SHOW READ QUERY LOAD BALANCE ALGORITHM PLUGINS;
 
 ### 保留字
 
-`SHOW`、`READ`、`QUERY`、`LOAD`、`BALANCE`、`ALGORITHM`、`PLUGINS`
+`SHOW`、`LOAD`、`BALANCE`、`ALGORITHM`、`PLUGINS`
 
 ### 相关链接
 
diff --git 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-read-query-load-balance-algorithm-plugins.en.md
 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-load-balance-algorithm-plugins.en.md
similarity index 67%
rename from 
docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-read-query-load-balance-algorithm-plugins.en.md
rename to 
docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-load-balance-algorithm-plugins.en.md
index 1b923c36288..c84d1d18e75 100644
--- 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-read-query-load-balance-algorithm-plugins.en.md
+++ 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/plugin/show-load-balance-algorithm-plugins.en.md
@@ -1,19 +1,19 @@
 +++
-title = "SHOW READ QUERY LOAD BALANCE ALGORITHM PLUGINS"
+title = "SHOW LOAD BALANCE ALGORITHM PLUGINS"
 weight = 3
 +++
 
 ### Description
 
-The `SHOW READ QUERY LOAD BALANCE ALGORITHM PLUGINS` syntax is used to query 
all the implementations of the interface 
`org.apache.shardingsphere.infra.algorithm.load.balancer.core.LoadBalanceAlgorithm`.
+The `SHOW LOAD BALANCE ALGORITHM PLUGINS` syntax is used to query all the 
implementations of the interface 
`org.apache.shardingsphere.infra.algorithm.load.balancer.core.LoadBalanceAlgorithm`.
 
 ### Syntax
 
 {{< tabs >}}
 {{% tab name="Grammar" %}}
 ```sql
-showReadQueryLoadBalanceAlgorithmPlugins ::=
-  'SHOW' 'READ' 'QUERY' 'LOAD' 'BALANCE' 'ALGORITHM' 'PLUGINS'
+showLoadBalanceAlgorithmPlugins ::=
+  'SHOW' 'LOAD' 'BALANCE' 'ALGORITHM' 'PLUGINS'
 ```
 {{% /tab %}}
 {{% tab name="Railroad diagram" %}}
@@ -34,11 +34,11 @@ showReadQueryLoadBalanceAlgorithmPlugins ::=
 - Query all the implementations for 
`org.apache.shardingsphere.infra.algorithm.load.balancer.core.LoadBalanceAlgorithm`
 interface
 
 ```sql
-SHOW READ QUERY LOAD BALANCE ALGORITHM PLUGINS
+SHOW LOAD BALANCE ALGORITHM PLUGINS
 ```
 
 ```sql
-SHOW READ QUERY LOAD BALANCE ALGORITHM PLUGINS;
+SHOW LOAD BALANCE ALGORITHM PLUGINS;
 +-------------+--------------+-------------+
 | type        | type_aliases | description |
 +-------------+--------------+-------------+
@@ -51,7 +51,7 @@ SHOW READ QUERY LOAD BALANCE ALGORITHM PLUGINS;
 
 ### Reserved word
 
-`SHOW`, `READ`, `QUERY`, `LOAD`, `BALANCE`, `ALGORITHM`, `PLUGINS`
+`SHOW`, `LOAD`, `BALANCE`, `ALGORITHM`, `PLUGINS`
 
 ### Related links
 
diff --git 
a/features/readwrite-splitting/distsql/handler/src/main/resources/META-INF/services/org.apache.shardingsphere.distsql.handler.executor.ral.plugin.PluginTypeAndClassMapper
 
b/features/readwrite-splitting/distsql/handler/src/main/resources/META-INF/services/org.apache.shardingsphere.distsql.handler.executor.ral.plugin.PluginTypeAndClassMapper
deleted file mode 100644
index 42af5a35524..00000000000
--- 
a/features/readwrite-splitting/distsql/handler/src/main/resources/META-INF/services/org.apache.shardingsphere.distsql.handler.executor.ral.plugin.PluginTypeAndClassMapper
+++ /dev/null
@@ -1,18 +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.
-#
-
-org.apache.shardingsphere.readwritesplitting.distsql.handler.query.ReadQueryLoadBalanceAlgorithmTypeAndClassMapper
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 769ec688900..3965f963225 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
@@ -134,23 +134,3 @@ WEIGHT
 NOT
     : N O T
     ;
-
-QUERY
-    : Q U E R Y
-    ;
-
-LOAD
-    : L O A D
-    ;
-
-BALANCE
-    : B A L A N C E
-    ;
-
-ALGORITHM
-    : A L G O R I T H M
-    ;
-
-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 0d62feac8c8..dd5366b4978 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
@@ -26,7 +26,3 @@ alterReadwriteSplittingStorageUnitStatus
 showStatusFromReadwriteSplittingRules
     : SHOW STATUS FROM READWRITE_SPLITTING (RULES | RULE ruleName) (FROM 
databaseName)?
     ;
-
-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 c3a7ab2a868..3275e107295 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,5 @@ execute
     | alterReadwriteSplittingStorageUnitStatus
     | showStatusFromReadwriteSplittingRules
     | countReadwriteSplittingRule
-    | 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 1757c64145c..29d00faa4a4 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,19 +29,17 @@ 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.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;
-import 
org.apache.shardingsphere.distsql.statement.ral.queryable.show.ShowPluginsStatement;
 import 
org.apache.shardingsphere.distsql.statement.rql.rule.database.CountRuleStatement;
 import 
org.apache.shardingsphere.readwritesplitting.distsql.segment.ReadwriteSplittingRuleSegment;
 import 
org.apache.shardingsphere.readwritesplitting.distsql.statement.AlterReadwriteSplittingRuleStatement;
+import 
org.apache.shardingsphere.readwritesplitting.distsql.statement.AlterReadwriteSplittingStorageUnitStatusStatement;
 import 
org.apache.shardingsphere.readwritesplitting.distsql.statement.CreateReadwriteSplittingRuleStatement;
 import 
org.apache.shardingsphere.readwritesplitting.distsql.statement.DropReadwriteSplittingRuleStatement;
 import 
org.apache.shardingsphere.readwritesplitting.distsql.statement.ShowReadwriteSplittingRulesStatement;
 import 
org.apache.shardingsphere.readwritesplitting.distsql.statement.ShowStatusFromReadwriteSplittingRulesStatement;
-import 
org.apache.shardingsphere.readwritesplitting.distsql.statement.AlterReadwriteSplittingStorageUnitStatusStatement;
 import org.apache.shardingsphere.sql.parser.api.ASTNode;
 import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitor;
 import 
org.apache.shardingsphere.sql.parser.sql.common.segment.generic.DatabaseSegment;
@@ -127,9 +125,4 @@ public final class 
ReadwriteSplittingDistSQLStatementVisitor extends ReadwriteSp
         }
         return result;
     }
-    
-    @Override
-    public ASTNode visitShowReadQueryLoadBalanceAlgorithmPlugins(final 
ShowReadQueryLoadBalanceAlgorithmPluginsContext ctx) {
-        return new ShowPluginsStatement("READ_QUERY_LOAD_BALANCE_ALGORITHM");
-    }
 }
diff --git a/infra/distsql-handler/pom.xml b/infra/distsql-handler/pom.xml
index 8c7efa7d661..bcebb5399a9 100644
--- a/infra/distsql-handler/pom.xml
+++ b/infra/distsql-handler/pom.xml
@@ -37,6 +37,11 @@
             
<artifactId>shardingsphere-infra-algorithm-key-generator-core</artifactId>
             <version>${project.version}</version>
         </dependency>
+        <dependency>
+            <groupId>org.apache.shardingsphere</groupId>
+            
<artifactId>shardingsphere-infra-algorithm-load-balancer-core</artifactId>
+            <version>${project.version}</version>
+        </dependency>
         <dependency>
             <groupId>org.apache.shardingsphere</groupId>
             <artifactId>shardingsphere-mode-core</artifactId>
diff --git 
a/features/readwrite-splitting/distsql/handler/src/main/java/org/apache/shardingsphere/readwritesplitting/distsql/handler/query/ReadQueryLoadBalanceAlgorithmTypeAndClassMapper.java
 
b/infra/distsql-handler/src/main/java/org/apache/shardingsphere/distsql/handler/executor/ral/plugin/type/LoadBalanceAlgorithmTypeAndClassMapper.java
similarity index 80%
rename from 
features/readwrite-splitting/distsql/handler/src/main/java/org/apache/shardingsphere/readwritesplitting/distsql/handler/query/ReadQueryLoadBalanceAlgorithmTypeAndClassMapper.java
rename to 
infra/distsql-handler/src/main/java/org/apache/shardingsphere/distsql/handler/executor/ral/plugin/type/LoadBalanceAlgorithmTypeAndClassMapper.java
index 44a1389ec7b..04830dfa660 100644
--- 
a/features/readwrite-splitting/distsql/handler/src/main/java/org/apache/shardingsphere/readwritesplitting/distsql/handler/query/ReadQueryLoadBalanceAlgorithmTypeAndClassMapper.java
+++ 
b/infra/distsql-handler/src/main/java/org/apache/shardingsphere/distsql/handler/executor/ral/plugin/type/LoadBalanceAlgorithmTypeAndClassMapper.java
@@ -15,15 +15,15 @@
  * limitations under the License.
  */
 
-package org.apache.shardingsphere.readwritesplitting.distsql.handler.query;
+package org.apache.shardingsphere.distsql.handler.executor.ral.plugin.type;
 
 import 
org.apache.shardingsphere.distsql.handler.executor.ral.plugin.PluginTypeAndClassMapper;
 import 
org.apache.shardingsphere.infra.algorithm.load.balancer.core.LoadBalanceAlgorithm;
 
 /**
- * Read query load balance algorithm type and class mapper.
+ * Load balance algorithm type and class mapper.
  */
-public final class ReadQueryLoadBalanceAlgorithmTypeAndClassMapper implements 
PluginTypeAndClassMapper {
+public final class LoadBalanceAlgorithmTypeAndClassMapper implements 
PluginTypeAndClassMapper {
     
     @Override
     public Class<LoadBalanceAlgorithm> getPluginClass() {
@@ -32,6 +32,6 @@ public final class 
ReadQueryLoadBalanceAlgorithmTypeAndClassMapper implements Pl
     
     @Override
     public String getType() {
-        return "READ_QUERY_LOAD_BALANCE_ALGORITHM";
+        return "LOAD_BALANCE_ALGORITHM";
     }
 }
diff --git 
a/infra/distsql-handler/src/main/resources/META-INF/services/org.apache.shardingsphere.distsql.handler.executor.ral.plugin.PluginTypeAndClassMapper
 
b/infra/distsql-handler/src/main/resources/META-INF/services/org.apache.shardingsphere.distsql.handler.executor.ral.plugin.PluginTypeAndClassMapper
index c24bb65bc18..f3b18c2a553 100644
--- 
a/infra/distsql-handler/src/main/resources/META-INF/services/org.apache.shardingsphere.distsql.handler.executor.ral.plugin.PluginTypeAndClassMapper
+++ 
b/infra/distsql-handler/src/main/resources/META-INF/services/org.apache.shardingsphere.distsql.handler.executor.ral.plugin.PluginTypeAndClassMapper
@@ -16,3 +16,4 @@
 #
 
 
org.apache.shardingsphere.distsql.handler.executor.ral.plugin.type.KeyGenerateAlgorithmTypeAndClassMapper
+org.apache.shardingsphere.distsql.handler.executor.ral.plugin.type.LoadBalanceAlgorithmTypeAndClassMapper
diff --git a/parser/distsql/engine/src/main/antlr4/imports/Keyword.g4 
b/parser/distsql/engine/src/main/antlr4/imports/Keyword.g4
index f520facabf9..e2bdb512195 100644
--- a/parser/distsql/engine/src/main/antlr4/imports/Keyword.g4
+++ b/parser/distsql/engine/src/main/antlr4/imports/Keyword.g4
@@ -331,6 +331,14 @@ GENERATE
     : G E N E R A T E
     ;
 
+LOAD
+    : L O A D
+    ;
+
+BALANCE
+    : B A L A N C E
+    ;
+
 ALGORITHM
     : A L G O R I T H M
     ;
diff --git a/parser/distsql/engine/src/main/antlr4/imports/RALStatement.g4 
b/parser/distsql/engine/src/main/antlr4/imports/RALStatement.g4
index a9dae402431..5d9e356e55f 100644
--- a/parser/distsql/engine/src/main/antlr4/imports/RALStatement.g4
+++ b/parser/distsql/engine/src/main/antlr4/imports/RALStatement.g4
@@ -115,6 +115,10 @@ showKeyGenerateAlgorithmPlugins
     : SHOW KEY GENERATE ALGORITHM PLUGINS
     ;
 
+showLoadBalanceAlgorithmPlugins
+    : SHOW LOAD BALANCE ALGORITHM PLUGINS
+    ;
+
 confPath
     : 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 ef2d33f8589..ea54423a6ad 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,5 +50,6 @@ execute
     | unlockCluster
     | showPluginImplementations
     | showKeyGenerateAlgorithmPlugins
+    | showLoadBalanceAlgorithmPlugins
     ) 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 9b1a930bb98..0ecce27e2da 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
@@ -51,6 +51,7 @@ import 
org.apache.shardingsphere.distsql.parser.autogen.KernelDistSQLStatementPa
 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.ShowKeyGenerateAlgorithmPluginsContext;
+import 
org.apache.shardingsphere.distsql.parser.autogen.KernelDistSQLStatementParser.ShowLoadBalanceAlgorithmPluginsContext;
 import 
org.apache.shardingsphere.distsql.parser.autogen.KernelDistSQLStatementParser.ShowLogicalTablesContext;
 import 
org.apache.shardingsphere.distsql.parser.autogen.KernelDistSQLStatementParser.ShowPluginImplementationsContext;
 import 
org.apache.shardingsphere.distsql.parser.autogen.KernelDistSQLStatementParser.ShowRulesUsedStorageUnitContext;
@@ -337,4 +338,9 @@ public final class KernelDistSQLStatementVisitor extends 
KernelDistSQLStatementB
     public ASTNode visitShowKeyGenerateAlgorithmPlugins(final 
ShowKeyGenerateAlgorithmPluginsContext ctx) {
         return new ShowPluginsStatement("KEY_GENERATE_ALGORITHM");
     }
+    
+    @Override
+    public ASTNode visitShowLoadBalanceAlgorithmPlugins(final 
ShowLoadBalanceAlgorithmPluginsContext ctx) {
+        return new ShowPluginsStatement("LOAD_BALANCE_ALGORITHM");
+    }
 }

Reply via email to