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 2020/12/16 07:54:35 UTC

[GitHub] [shardingsphere] guid-git commented on issue #1419: java.lang.ArrayIndexOutOfBoundsException

guid-git commented on issue #1419:
URL: https://github.com/apache/shardingsphere/issues/1419#issuecomment-745861611


   > I use sharding-jdbc to batch insert to mysql.
   > sharding key: a varchar column, e.g.`hash`
   > database sharding algorithm: `hash.charAt(0) % 3`
   > table sharding algorithm: `hash.charAt(0) % 4`
   > 
   > when i do batch insert with sharding-jdbc:
   > 
   > > Exception in thread "Thread-1" java.lang.ArrayIndexOutOfBoundsException: 1
   > > at io.shardingsphere.shardingjdbc.executor.BatchPreparedStatementExecutor.accumulate(BatchPreparedStatementExecutor.java:176)
   > > at io.shardingsphere.shardingjdbc.executor.BatchPreparedStatementExecutor.executeBatch(BatchPreparedStatementExecutor.java:168)
   > > at io.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.executeBatch(ShardingPreparedStatement.java:236)
   > > at org.apache.commons.dbutils.QueryRunner.batch(QueryRunner.java:192)
   > > at org.apache.commons.dbutils.QueryRunner.batch(QueryRunner.java:151)
   
   have you slove this problem?


----------------------------------------------------------------
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:
users@infra.apache.org