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

   I extend the complex  sharding algorithm need DataNodeInfo, but it only in 
`org.apache.shardingsphere.sharding.api.sharding.standard.PreciseShardingValue`
   
   I think can add DataNodeInfo for 
`org.apache.shardingsphere.sharding.api.sharding.complex.ComplexKeysShardingValue`
   
   
   ### before
   ```java
   @RequiredArgsConstructor
   @Getter
   @ToString
   public final class ComplexKeysShardingValue<T extends Comparable<?>> 
implements ShardingValue {
       
       private final String logicTableName;
       
       private final Map<String, Collection<T>> columnNameAndShardingValuesMap;
       
       private final Map<String, Range<T>> columnNameAndRangeValuesMap;
       
   }
   ```
   ### after
   ```java
   @RequiredArgsConstructor
   @Getter
   @ToString
   public final class ComplexKeysShardingValue<T extends Comparable<?>> 
implements ShardingValue {
       
       private final String logicTableName;
       
       private final Map<String, Collection<T>> columnNameAndShardingValuesMap;
       
       private final Map<String, Range<T>> columnNameAndRangeValuesMap;
   
       private final DataNodeInfo dataNodeInfo;
       
   }
   ```


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