loadTableWork.add(new loadTableDesc(fromURI.toString(), Utilities.getTableDesc(ts.tableHandle),
(ts.partSpec != null) ? ts.partSpec : new HashMap<String, String> (),
isOverWrite));
if(rTask != null) {
rTask.addDependentTask(TaskFactory.get(new moveWork(loadTableWork, loadFileWork), this.conf));
} else {
rTask = TaskFactory.get(new moveWork(loadTableWork, loadFileWork), this.conf);
}
rootTasks.add(rTask);
}