448700174 commented on issue #12315:
URL: 
https://github.com/apache/shardingsphere/issues/12315#issuecomment-916592582


       In class ShardingStandardRoutingEngine:
       private Collection<DataNode> routeTables(final TableRule tableRule, 
final String routedDataSource, 
                                                final ShardingStrategy 
tableShardingStrategy, final List<ShardingConditionValue> tableShardingValues) {
           Collection<String> availableTargetTables = 
tableRule.getActualTableNames(routedDataSource);
           Collection<String> routedTables = new 
LinkedHashSet<>(tableShardingValues.isEmpty()
                   ? availableTargetTables : 
tableShardingStrategy.doSharding(**availableTargetTables**, 
tableShardingValues, properties));
           Collection<DataNode> result = new LinkedList<>();
           for (String each : routedTables) {
               result.add(new DataNode(routedDataSource, each));
           }
           return result;
       }
       
   Is there a bug ?


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