tristaZero commented on a change in pull request #9245:
URL: https://github.com/apache/shardingsphere/pull/9245#discussion_r568288473



##########
File path: 
shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/text/distsql/rdl/AlterShardingRuleBackendHandler.java
##########
@@ -118,8 +118,14 @@ private void checkAddRule(final ShardingRuleConfiguration 
shardingRuleConfig, fi
     private void alter(final YamlShardingRuleConfiguration 
yamlShardingRuleConfig, final AlterShardingRuleStatement statement) {
         modifyTableRule(yamlShardingRuleConfig, statement);
         addTableRule(yamlShardingRuleConfig, statement);
-        if (!statement.getBindingTables().isEmpty()) {
-            
yamlShardingRuleConfig.setBindingTables(statement.getBindingTables());
+        Collection<String> existBindingTables = 
yamlShardingRuleConfig.getBindingTables();

Review comment:
       Is there any judgement for no such binding_table_rule?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to