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

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

                Author: ASF GitHub Bot
            Created on: 11/Jun/20 14:48
            Start Date: 11/Jun/20 14:48
    Worklog Time Spent: 10m 
      Work Description: pkumarsinha commented on a change in pull request #1084:
URL: https://github.com/apache/hive/pull/1084#discussion_r438842356



##########
File path: 
ql/src/java/org/apache/hadoop/hive/ql/parse/ImportSemanticAnalyzer.java
##########
@@ -686,9 +687,25 @@ private static ImportTableDesc 
getBaseCreateTableDescFromTable(String dbName,
         loadTableWork.setInheritTableSpecs(false);
         moveWork.setLoadTableWork(loadTableWork);
       }
+      Task<?> loadPartTask = TaskFactory.get(moveWork, x.getConf());
+      if (performOnlyMove) {
+        if (addPartTask != null) {
+          addPartTask.addDependentTask(loadPartTask);
+        }
+        x.getTasks().add(loadPartTask);
+        return addPartTask == null ? loadPartTask : addPartTask;

Review comment:
       Yes, but then we will have to have two return statements which I wanted 
to avoid.




----------------------------------------------------------------
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: 444303)
    Time Spent: 1h 10m  (was: 1h)

> Optimize data copy during repl load operation for HDFS based staging location
> -----------------------------------------------------------------------------
>
>                 Key: HIVE-23539
>                 URL: https://issues.apache.org/jira/browse/HIVE-23539
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Pravin Sinha
>            Assignee: Pravin Sinha
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-23539.01.patch
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>




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

Reply via email to