kaifkhan93544 opened a new pull request, #1438:
URL: https://github.com/apache/arrow-java/pull/1438
## What's Changed
Fixes batch execution in `ArrowFlightMetaImpl` when executing a batch of
`PreparedStatement` updates.
Previously, `ArrowFlightMetaImpl.executeBatch()` only returned a
single-element array (`long[]{ preparedStatement.executeUpdate() }`),
regardless of the number of parameter sets added via `stmt.addBatch()`. This
violated the JDBC specification, which requires returning an array containing
one update count for each statement in the batch.
- Returns an array of update counts whose length matches
`parameterValuesList.size()`.
- Distributes and preserves update counts across all batch entries.
- Updates `ArrowFlightPreparedStatementTest` to assert that `executeBatch()`
returns an array with the expected length and individual update counts.
Closes #1412.
--
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]