Indhumathi27 commented on code in PR #6042:
URL: https://github.com/apache/hive/pull/6042#discussion_r2381400199


##########
ql/src/java/org/apache/hadoop/hive/ql/processors/SetProcessor.java:
##########
@@ -272,10 +272,25 @@ public Map<String, String> getHiveVariable() {
     }
     if (register) {
       ss.getOverriddenConfigurations().put(key, value);
+
+      if (metaConfOverlayList.contains(key)) {
+        try (Hive hive = Hive.get(ss.getConf())) {

Review Comment:
   suggest using **needsRefresh** with get() API here instead. If 
**needsRefresh** alone not able to accomplish calling close, i suggest 
introducing a new variable to refresh Hive object.



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