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 2021/12/22 15:22:02 UTC

[GitHub] [shardingsphere] GreekPanda opened a new issue #14242: Cannot use mod() on this number type: java.math.BigDecimal, it's should be fixed.

GreekPanda opened a new issue #14242:
URL: https://github.com/apache/shardingsphere/issues/14242


   I've reviewed the issue #13857 , but I don't know your guys what to fix it or not, it's a big issue to my history code if not supported with BigInteger, I can't change all code from BigInteger to Long, it's impossible. 
   
   MySQL: mysql  Ver 8.0.25 for Linux on x86_64 (MySQL Community Server - GPL)
   JDBC: mysql-connector-java 8.0.11
   HikariCP: 2.7.8
   


-- 
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] terrymanu commented on issue #14242: Cannot use mod() on this number type: java.math.BigDecimal, it's should be fixed.

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


   I just close this issue because no response for long time.


-- 
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] RaigorJiang commented on issue #14242: Cannot use mod() on this number type: java.math.BigDecimal, it's should be fixed.

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


   Hi @GreekPanda 
   BigInteger cannot use the mod function, and you use a modular sharding algorithm, which is the cause of the exception.
   ShardingSphere provides a general solution, but also provides the ability to expand. If you have a special scenario, you can choose to implement your own sharding algorithm and use the BigInteger type in the algorithm.
   
   Here is an example of a custom algorithm:
   https://github.com/apache/shardingsphere/tree/master/examples/shardingsphere-jdbc-example/single-feature-example/extension-example/custom-sharding-algortihm-example


-- 
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] terrymanu closed issue #14242: Cannot use mod() on this number type: java.math.BigDecimal, it's should be fixed.

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #14242:
URL: https://github.com/apache/shardingsphere/issues/14242


   


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