mykolapavlov-dremio opened a new issue, #1412:
URL: https://github.com/apache/arrow-java/issues/1412

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   Description
   When executing a batch of INSERT using PreparedStatement.executeBatch()only 
the first statement is being executed in the database. The return value is an 
integer array with a single integer. This is not JDBC-compliant behavior, as it 
should either return an array of update counts containing one element for each 
command in the batch on successful execution of every command or throw an 
exception.
   
   Steps to reproduce
   1- Create a writable source in Dremio with INSERT privilege
   2- Execute a batch of multiple INSERT commands on a PreparedStatement
   Run main()method of the attached class to reproduce the bug. The code 
assumes that you have a writable source, with INSERT privilege, named nas, and 
that this source has a table named my_table which has a single VARCHAR(100) 
column. 
   
   
[InsertBatchPreparedStatement.java](https://github.com/user-attachments/files/34066773/InsertBatchPreparedStatement.java)


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

Reply via email to