[Java][FlightSQL] Arrow Flight SQL JDBC Driver returns -1 for getUpdateCount()
- Langage dominant
- Java
- Étoiles
- 94
- Forks
- 152
- Merge moyen
- 3 j 16 h
- PR mergées (30 j)
- 11
Description
### Describe the bug, including details regarding any error messages, version, and platform.
Tested on Arrow Flight JDBC 15, 15.02 and with a locally-built Arrow Flight SQL JDBC Driver 17.0.0-SNAPSHOT.
When using a JDBC statement to execute an UPDATE, the getUpdateCount() method seems to always return -1. This seems to be incorrect. The getUpdateCount() should return the number of rows UPDATEd.
For a data source, we're using the [Voltron docker container](https://hub.docker.com/r/voltrondata/flight-sql)
In this debugger image, you can see the return counts from the getUpdateCount() and from the actual result set (the update returns one row, with one column, that indicates the number of UPDATEd rows.
Here is a screen grab of the output data:
And, in this screengrab, I used the Postgres driver to update a table in postgres:latest Docker image:
The data in the Postgres table is different, but the getUpdateCount() method returned 1 which is correct for that data.
The test program I used is checked into this Github repo: [ZD128958](https://github.com/rcprcp/ZD128958)
Thank you!
### Component(s)
Java
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par exécuter le programme de test ZD128958 avec le Arrow Flight SQL JDBC Driver et comparez Statement.getUpdateCount() avec l'ensemble de résultats renvoyé pour un UPDATE. Suivez le chemin du pilote JDBC qui traite les résultats d'UPDATE ; le travail est terminé lorsque getUpdateCount() indique le nombre de lignes mises à jour, comme le fait le pilote PostgreSQL.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- database
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100