aasha commented on a change in pull request #911: HIVE-22865 Include data in 
replication staging directory
URL: https://github.com/apache/hive/pull/911#discussion_r383789102
 
 

 ##########
 File path: 
ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/TableExport.java
 ##########
 @@ -160,8 +160,10 @@ private void writeData(PartitionIterable partitions) 
throws SemanticException {
       } else {
         List<Path> dataPathList = 
Utils.getDataPathList(tableSpec.tableHandle.getDataLocation(),
                 replicationSpec, conf);
-        new FileOperations(dataPathList, paths.dataExportDir(), 
distCpDoAsUser, conf, mmCtx)
-                .export(replicationSpec);
+        // this is the data copy
+        if (!replicationSpec.isLazy()) {
 
 Review comment:
   Is the check needed?

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to