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



##########
File path: 
ql/src/java/org/apache/hadoop/hive/ql/parse/ReplicationSemanticAnalyzer.java
##########
@@ -177,11 +177,6 @@ private void initReplDump(ASTNode ast) throws 
HiveException {
     for (String dbName : Utils.matchesDb(db, dbNameOrPattern)) {
       Database database = db.getDatabase(dbName);
       if (database != null) {
-        if (!isMetaDataOnly && 
!ReplChangeManager.isSourceOfReplication(database)) {
-          LOG.error("Cannot dump database " + dbNameOrPattern +
-                  " as it is not a source of replication (repl.source.for)");
-          throw new 
SemanticException(ErrorMsg.REPL_DATABASE_IS_NOT_SOURCE_OF_REPLICATION.getMsg());

Review comment:
       REPL_DATABASE_IS_NOT_SOURCE_OF_REPLICATION constant can be cleaned up?




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