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/05/27 03:16:42 UTC

[GitHub] [shardingsphere] wsm12138 commented on issue #17988: Out of range value for column 'id' at row 1

wsm12138 commented on issue #17988:
URL: https://github.com/apache/shardingsphere/issues/17988#issuecomment-1139239434

   > It seems you use snowflake as primary key. And the length is longer than int(11).
   According to advice
   change shardingColumn id to  k
   ```
   rules:
   - !SHARDING
    tables:
    sbtest1:
    actualDataNodes: ds_${0..3}.sbtest1_${0..9}
    tableStrategy:
    standard:
    shardingColumn: k
    shardingAlgorithmName: mod_ten
   ​
    defaultDatabaseStrategy:
    standard:
    shardingColumn: k
    shardingAlgorithmName: mod_four
   ​
    shardingAlgorithms:
    mod_four:
    type: MOD
    props:
    sharding-count: 4
    mod_ten:
    type: MOD
    props:
    sharding-count: 10
   ​```
   


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