aasha commented on a change in pull request #2043:
URL: https://github.com/apache/hive/pull/2043#discussion_r600248724



##########
File path: 
ql/src/java/org/apache/hadoop/hive/ql/parse/repl/load/message/AlterDatabaseHandler.java
##########
@@ -86,11 +97,45 @@
       // Only database object is updated
       updatedMetadata.set(context.dmd.getEventTo().toString(), actualDbName,
               null, null);
+      processSnapshots(context.hiveConf, oldDb, newDb);
       return Collections.singletonList(alterDbTask);
     } catch (Exception e) {
       throw (e instanceof SemanticException)
           ? (SemanticException) e
           : new SemanticException("Error reading message members", e);
     }
   }
+
+  private void processSnapshots(HiveConf conf, Database before,

Review comment:
       can use a common method. done at 2 places.




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