FlyingZC opened a new issue, #26600:
URL: https://github.com/apache/shardingsphere/issues/26600

   ## Bug Report
   Unmodified tables are refreshed when metadata is modified.
   
   ### Which version of ShardingSphere did you use?
   Master
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   Proxy
   
   ### Expected behavior
   Do not refresh unmodified tables.
   
   ### Actual behavior
   Unmodified tables are refreshed when metadata is modified.
   
   ### Reason analyze (If you can)
   ShardingSphereTable#getColumns is overrided to return `map.values`, 
`map.values` is `LinkedValues` type, the `equals` method is not overrided, 
resulting in `equals` is always false.
   ```java
   private final Map<String, ShardingSphereColumn> columns;
   public Collection<ShardingSphereColumn> getColumns() {
         return columns.values();
    }
   ```
   <img width="446" alt="image" 
src="https://github.com/apache/shardingsphere/assets/19788130/9b304cc4-9920-4eeb-b964-0536719bdc7d";>
   
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
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.

To unsubscribe, e-mail: 
[email protected]

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

Reply via email to