mykolapavlov-dremio opened a new pull request, #1410:
URL: https://github.com/apache/arrow-java/pull/1410

   ## Summary
   
   Fix Arrow Flight SQL JDBC prepared-statement batch handling for servers that 
emit one update result per parameter row.
   
   The client now collects all update counts, exposes one count per batch 
entry, translates partial failures to `BatchUpdateException`, and releases 
response buffers on success and failure.
   
   ## Changes
   
   - Add `executeUpdateBatch()` to the Flight SQL prepared-statement client.
   - Drain and close every `PutResult`.
   - Make `SyncPutListener` safe against late callbacks during cleanup.
   - Preserve counts received before a Flight failure.
   - Translate batch failures to JDBC `BatchUpdateException`.
   - Update JDBC batch tests and the mock producer for multiple results.
   
   ## Test plan
   
   - Verify a ten-row batch returns ten update counts.
   - Verify a late server failure returns `BatchUpdateException` with partial 
counts.
   - Verify connection close reports no Arrow allocator leak.
   
   ## Related
   
   - Server PR: https://github.com/dremio/dremio/pull/30885


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