jingshanglu opened a new issue #14220: URL: https://github.com/apache/shardingsphere/issues/14220
## Bug Report **For English only**, other languages will not accept. Before report a bug, make sure you have: - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues). - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview). Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot reproduce it on current information, we will **close it**. Please answer these questions before submitting your issue. Thanks! ### Which version of ShardingSphere did you use? master ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy? proxy ### Expected behavior ``` insert into account values(1,0),(2,100); select * from account; id | balance ----+--------- 2 | 100 1 | 0 ``` ### Actual behavior ``` id | balance ----+--------- 2 | 100 1 | 0 2 | 100 1 | 0 ``` ### config config-sharding.yaml ```yaml schemaName: sbtest_sharding dataSources: ds_0: url: jdbc:postgresql://127.0.0.1:15401/sbtest?useSSL=false&useServerPrepStmts=true&cachePrepStmts=true&prepStmtCacheSize=8192&prepStmtCacheSqlLimit=1024 username: test password: 12345678 connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 maxPoolSize: 2000 minPoolSize: 1 ds_1: url: jdbc:postgresql://127.0.0.1:15402/sbtest?useSSL=false&useServerPrepStmts=true&cachePrepStmts=true&prepStmtCacheSize=8192&prepStmtCacheSqlLimit=1024 username: test password: 12345678 connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 maxPoolSize: 2000 minPoolSize: 1 rules: - !SHARDING tables: account: actualDataNodes: ds_${0..1}.account_${0..1} tableStrategy: standard: shardingColumn: id shardingAlgorithmName: account_inline keyGenerateStrategy: column: id keyGeneratorName: snowflake defaultDatabaseStrategy: standard: shardingColumn: id shardingAlgorithmName: database_inline shardingAlgorithms: database_inline: type: INLINE props: algorithm-expression: ds_${id % 2} account_inline: type: INLINE props: algorithm-expression: account_${id % 2} keyGenerators: snowflake: type: SNOWFLAKE props: worker-id: 123 ``` -- 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]
