You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2022/04/26 07:19:47 UTC

[GitHub] [hive] lcspinter commented on a diff in pull request #3234: HIVE-26167: QueryStateMap in SessionState is not maintained correctly

lcspinter commented on code in PR #3234:
URL: https://github.com/apache/hive/pull/3234#discussion_r858364612


##########
ql/src/java/org/apache/hadoop/hive/ql/Driver.java:
##########
@@ -532,6 +522,10 @@ private void prepareContext() throws CommandProcessorException {
     context.setHDFSCleanup(true);
 
     driverTxnHandler.setContext(context);
+
+    if (SessionState.get() != null) {
+      SessionState.get().addQueryState(getConf().get(HiveConf.ConfVars.HIVEQUERYID.varname), getQueryState());

Review Comment:
   I think there is no difference in terms of performance, but I changed it for the sake of readability. 



-- 
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: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org