currentTableId = this.destTableId;
this.destTableId ++;
// Create the work for moving the table
this.loadTableWork.add
(new loadTableDesc(queryTmpdir,
ctx.getExternalTmpFileURI(dest_path.toUri()),
table_desc,
new HashMap<String, String>()));
outputs.add(new WriteEntity(dest_tab));
break;
}
case QBMetaData.DEST_PARTITION: {
Partition dest_part = qbm.getDestPartitionForAlias(dest);
dest_tab = dest_part.getTable();
dest_path = dest_part.getPath()[0];
queryTmpdir = ctx.getExternalTmpFileURI(dest_path.toUri());
table_desc = Utilities.getTableDesc(dest_tab);
this.idToTableNameMap.put(String.valueOf(this.destTableId), dest_tab.getName());
currentTableId = this.destTableId;
this.destTableId ++;
this.loadTableWork.add
(new loadTableDesc(queryTmpdir,
ctx.getExternalTmpFileURI(dest_path.toUri()),
table_desc, dest_part.getSpec()));
outputs.add(new WriteEntity(dest_part));
break;
}