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/03/03 02:20:12 UTC

[GitHub] [shardingsphere] tristaZero commented on pull request #9557: Test Calcite doing query between two sharding tables.

tristaZero commented on pull request #9557:
URL: https://github.com/apache/shardingsphere/pull/9557#issuecomment-789374904


   > I test every single test method, It was all good, but if I run the all the method of the class, this error happen.
   
   Hi @lmhmhl ,
   
   If this exception arise when all unit tests run together, it is more likely that some UTs are affected by others. 
   
   > java.lang.RuntimeException: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "PRIMARY KEY ON PUBLIC.""t_order_calcite_sharding_0""(""order_id_sharding"")"; SQL statement:
   INSERT INTO t_order_calcite_sharding_0 VALUES(1000, 10, 'init') [23505-196]
   
   Especially, you tried to insert same primary keys I guess.


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