if (!hasDynamicPartitions
&& !isSkewedStoredAsDirs(fsInputDesc)) {
inputDirs.add(inputDir);
}
MergeWork work = new MergeWork(inputDirs, finalName,
hasDynamicPartitions, fsInputDesc.getDynPartCtx());
LinkedHashMap<String, ArrayList<String>> pathToAliases =
new LinkedHashMap<String, ArrayList<String>>();
pathToAliases.put(inputDir, (ArrayList<String>) inputDirs.clone());
work.setMapperCannotSpanPartns(true);
work.setPathToAliases(pathToAliases);
work.setAliasToWork(
new LinkedHashMap<String, Operator<? extends OperatorDesc>>());
if (hasDynamicPartitions
|| isSkewedStoredAsDirs(fsInputDesc)) {
work.getPathToPartitionInfo().put(inputDir,
new PartitionDesc(tblDesc, null));
}
work.setListBucketingCtx(fsInputDesc.getLbCtx());
return work;
}
throw new SemanticException("createRCFileMergeTask called on non-RCFile table");