You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/10/19 04:39:15 UTC

[GitHub] [shardingsphere] xia10802481 opened a new issue, #21645: ComplexKeysShardingAlgorithm not support '>=' '<=' '>' '<'

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

   
   ### Which version of ShardingSphere did you use?
   4.0.0-RC2
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-JDBC
   ### Expected behavior
   when complex shard column contains '>=' in sql,ComplexKeysShardingAlgorithm impl can accept this column in doSharding method ,complexKeysShardingValue params
   ### Actual behavior
   can not accept this column
   ### Reason analyze (If you can)
   i dont know
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   SQL:
   select * from people where age > 18 and sex =0 "
   SpringBootConfig:
   pring.shardingsphere.sharding.tables.xxtable-strategy.complex.sharding-columns = age,sex
   spring.shardingsphere.sharding.tables.xx.table-strategy.complex.algorithm-class-name= com.demo.DateShardingAlgorithm
   DateShardingAlgorithm:
   <img width="1174" alt="image" src="https://user-images.githubusercontent.com/13432288/196598058-7a332636-c3aa-429d-9b07-95ee6d0c9f96.png">
   result:
   <img width="390" alt="image" src="https://user-images.githubusercontent.com/13432288/196598987-42d76c66-b8c6-4e12-be53-dee8338e75d8.png">
   
   
   
   
   
   
   ### 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: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] TeslaCN closed issue #21645: ComplexKeysShardingAlgorithm not support '>=' '<=' '>' '<'

Posted by GitBox <gi...@apache.org>.
TeslaCN closed issue #21645: ComplexKeysShardingAlgorithm not support '>='  '<=' '>' '<' 
URL: https://github.com/apache/shardingsphere/issues/21645


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] strongduanmu commented on issue #21645: ComplexKeysShardingAlgorithm not support '>=' '<=' '>' '<'

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #21645:
URL: https://github.com/apache/shardingsphere/issues/21645#issuecomment-1284737913

   The version 4.x is too old, please try the latest 5.2.1 version.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] TeslaCN commented on issue #21645: ComplexKeysShardingAlgorithm not support '>=' '<=' '>' '<'

Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #21645:
URL: https://github.com/apache/shardingsphere/issues/21645#issuecomment-1364851448

   Close due to no response.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org