[Java][FlightSQL] Arrow Flight SQL JDBC Driver returns -1 for getUpdateCount()
- Lingua principale
- Java
- Stelle
- 94
- Fork
- 152
- Merge medio
- 3g 16h
- PR unite (30g)
- 11
Descrizione
### 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia eseguendo il programma di test ZD128958 con l'Arrow Flight SQL JDBC Driver e confronta Statement.getUpdateCount() con il result set restituito per un UPDATE. Traccia il percorso del driver JDBC che gestisce i risultati di UPDATE; il lavoro è completato quando getUpdateCount() restituisce il numero di righe aggiornate, come fa il driver PostgreSQL.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- database
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100