[ 
https://issues.apache.org/jira/browse/HIVE-24624?focusedWorklogId=537407&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-537407
 ]

ASF GitHub Bot logged work on HIVE-24624:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 18/Jan/21 14:13
            Start Date: 18/Jan/21 14:13
    Worklog Time Spent: 10m 
      Work Description: 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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 537407)
    Time Spent: 0.5h  (was: 20m)

> Repl Load should detect the compatible staging dir
> --------------------------------------------------
>
>                 Key: HIVE-24624
>                 URL: https://issues.apache.org/jira/browse/HIVE-24624
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Pratyushotpal Madhukar
>            Assignee: Pratyushotpal Madhukar
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-24624.patch
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Repl load in CDP when pointed to a staging dir should be able to detect 
> whether the staging dir has the dump structure in compatible format or not



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to