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 46707f7df02 Refactor SQLFederationRule (#31819)
46707f7df02 is described below

commit 46707f7df0266e5757d696e0b98a09daaf0adac4
Author: Liang Zhang <[email protected]>
AuthorDate: Sun Jun 23 02:03:13 2024 +0800

    Refactor SQLFederationRule (#31819)
---
 .../apache/shardingsphere/sqlfederation/rule/SQLFederationRule.java   | 4 ----
 1 file changed, 4 deletions(-)

diff --git 
a/kernel/sql-federation/core/src/main/java/org/apache/shardingsphere/sqlfederation/rule/SQLFederationRule.java
 
b/kernel/sql-federation/core/src/main/java/org/apache/shardingsphere/sqlfederation/rule/SQLFederationRule.java
index b9ae2ee395b..eca1eff52bb 100644
--- 
a/kernel/sql-federation/core/src/main/java/org/apache/shardingsphere/sqlfederation/rule/SQLFederationRule.java
+++ 
b/kernel/sql-federation/core/src/main/java/org/apache/shardingsphere/sqlfederation/rule/SQLFederationRule.java
@@ -19,7 +19,6 @@ package org.apache.shardingsphere.sqlfederation.rule;
 
 import lombok.Getter;
 import 
org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase;
-import org.apache.shardingsphere.infra.rule.attribute.RuleAttributes;
 import org.apache.shardingsphere.infra.rule.scope.GlobalRule;
 import 
org.apache.shardingsphere.sqlfederation.config.SQLFederationRuleConfiguration;
 import 
org.apache.shardingsphere.sqlfederation.optimizer.context.OptimizerContext;
@@ -38,12 +37,9 @@ public final class SQLFederationRule implements GlobalRule {
     
     private final AtomicReference<OptimizerContext> optimizerContext;
     
-    private final RuleAttributes attributes;
-    
     public SQLFederationRule(final SQLFederationRuleConfiguration ruleConfig, 
final Map<String, ShardingSphereDatabase> databases) {
         configuration = ruleConfig;
         optimizerContext = new 
AtomicReference<>(OptimizerContextFactory.create(databases));
-        attributes = new RuleAttributes();
     }
     
     @Override

Reply via email to