avantgardnerio opened a new issue, #2403:
URL: https://github.com/apache/arrow-rs/issues/2403

   **Describe the bug**
   
   The Flight SQL Server incorrectly does a `as_any()` and sends a protobuf 
enum instead of the message itself. This is incompatible with the JDBC 
implementation. (As usual, the spec itself is unclear). It results in the 
`record_count` being `0` instead of `-1` which means a proper client 
implementation will poll forever.
   
   **To Reproduce**
   
   This one is a doozy to reproduce:
   
   1. Run [this 
fork](https://github.com/avantgardnerio/arrow-ballista/tree/bg_session) of 
ballista 
   2. Build [this fork](https://github.com/avantgardnerio/arrow/tree/bg_auth2) 
of the JDBC driver
   3. Install the fat jar driver into [your 
favorite](https://www.jetbrains.com/datagrip/download/#section=linux) SQL tool
   4. Run an update query, observe the tool hang as it follows [the 
spec](https://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#getMoreResults(int))
 attempting to wait for the condition to be met:
   
   ```
   There are no more results when the following is true:
   
        // stmt is a Statement object
        ((stmt.getMoreResults(current) == false) && (stmt.getUpdateCount() == 
-1))
   ```
   
   **Expected behavior**
   
   The query succeeds.
   


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