cxzl25 edited a comment on pull request #2113:
URL: 
https://github.com/apache/incubator-kyuubi/pull/2113#issuecomment-1065886296


   When the client has no `TIMEOUT` enumeration value, isSetOperationState is 
always false, and the loop will not exit.
   
   org.apache.hive.jdbc.HiveStatement#execute
   
   ```java
       while (!operationComplete) {
           if (statusResp.isSetOperationState()) {
             switch (statusResp.getOperationState()) {
               ...
               case CANCELED_STATE:
                 // 01000 -> warning
                 throw new SQLException("Query was cancelled", "01000");
               case TIMEDOUT_STATE:
                 throw new SQLTimeoutException("Query timed out after " + 
queryTimeout + " seconds");
   ```
   
   
   ## Fix
   
   
![image](https://user-images.githubusercontent.com/3898450/158020340-f9ca578b-a170-4a7e-a28a-237525f94aa0.png)
   


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to