duzhanfei edited a comment on issue #8913:
URL: https://github.com/apache/shardingsphere/issues/8913#issuecomment-757980968


   @tristaZero 
   
   The sharding key is of type String, and  sharding rules are made by hashing 
values
    The following  scenarios will cause  NullPointerException 
   ①When updating , the sharding key is lowercase,
       such as:
       PBCST_QRY_INFO_${Math.abs(ecif_cust_no.hashCode() % 16)}
   
   
     You can have a look at the issue I mentioned
      https://github.com/apache/shardingsphere/issues/8303
   
   ② When inserting data, the sharding key is uppercase
       such as:
      PBCST_QRY_INFO_${Math.abs(ECIF_CUST_NO.hashCode() % 16)}


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

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


Reply via email to