pigdance commented on issue #5599:
URL: 
https://github.com/apache/incubator-doris/issues/5599#issuecomment-813793492


   > 1 是否是使用 事务方式插入? 如果不是需要先begin transaction insert 后commit transaction,
   
   是基于jdbc默认开启事务方式,一次性导入多行数据,
   列如:String sql = INSERT INTO test VALUES (1, 2), (3, 5);
   PreparedStatement statement = connection.prepareStatement(sql)) {
   statement.execute();
   
   我试了手工提交事务也有类似的rpc 失败
           connection.setAutoCommit(false);
           try (PreparedStatement statement = connection.prepareStatement(sql)) 
{
               statement.execute();
               connection.commit();
               connection.setAutoCommit(true);
   }
   


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to