private void addInputsOutputsAlterTable(String tableName, Map<String, String> partSpec,
AlterTableDesc desc) throws SemanticException {
Table tab = getTable(tableName, true);
if (partSpec == null || partSpec.isEmpty()) {
inputs.add(new ReadEntity(tab));
outputs.add(new WriteEntity(tab));
}
else {
inputs.add(new ReadEntity(tab));
if (desc == null || desc.getOp() != AlterTableDesc.AlterTableTypes.ALTERPROTECTMODE) {
Partition part = getPartition(tab, partSpec, true);
outputs.add(new WriteEntity(part));
}
else {