aasha commented on a change in pull request #1855: URL: https://github.com/apache/hive/pull/1855#discussion_r559594298
########## File path: ql/src/java/org/apache/hadoop/hive/ql/parse/ReplicationSemanticAnalyzer.java ########## @@ -359,6 +359,10 @@ private void analyzeReplLoad(ASTNode ast) throws SemanticException { if (loadPath != null) { DumpMetaData dmd = new DumpMetaData(loadPath, conf); + if (!dmd.isVersionCompatible()) { + throw new SemanticException("Dump version: " + dmd.getHiveVersion() + + ". Versions older than 3 are not supported."); Review comment: Dont hardcode 3. Use the constant. ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org