pvary commented on a change in pull request #2261:
URL: https://github.com/apache/hive/pull/2261#discussion_r639676968



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/Driver.java
##########
@@ -213,7 +216,12 @@ private void runInternal(String command, boolean 
alreadyCompiled) throws Command
         releaseResources();
       }
 
+      if (SessionState.get() != null) {
+        // Remove any query state reference from the session state
+        
SessionState.get().removeQueryState(getConf().get(HiveConf.ConfVars.HIVEQUERYID.varname));
+      }
       driverState.executionFinishedWithLocking(isFinishedWithError);
+
     }

Review comment:
       nit of the nit for the newlines:
   ```suggestion
         }
   
         if (SessionState.get() != null) {
           // Remove any query state reference from the session state
           
SessionState.get().removeQueryState(getConf().get(HiveConf.ConfVars.HIVEQUERYID.varname));
         }
   
         driverState.executionFinishedWithLocking(isFinishedWithError);
       }
   ```




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

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