dengzhhu653 commented on code in PR #4180:
URL: https://github.com/apache/hive/pull/4180#discussion_r1175908033


##########
service/src/java/org/apache/hive/service/cli/operation/SQLOperation.java:
##########
@@ -319,11 +319,7 @@ public void run() {
         @Override
         public Object run() throws HiveSQLException {
           assert (!parentHive.allowClose());
-          try {
-            Hive.set(parentSessionState.getHiveDb());
-          } catch (HiveException e) {
-            throw new HiveSQLException(e);
-          }
+          Hive.set(parentHive);

Review Comment:
   Thank you for the comment!
   
   It doesn't revert 
[HIVE-25085](https://issues.apache.org/jira/browse/HIVE-25085), the 
`parentHive` is got from the parent session, where ensures that `parentHive` 
wouldn't be shared across the session.



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