AlterTableDesc alterTblDesc = new AlterTableDesc(tblName,
getUnescapedName((ASTNode)ast.getChild(1)), expectView);
try {
Table tab = db.getTable(db.getCurrentDatabase(), tblName, false);
if (tab != null) {
inputs.add(new ReadEntity(tab));
outputs.add(new WriteEntity(tab));
}
} catch (HiveException e) {
throw new SemanticException(ErrorMsg.INVALID_TABLE.getMsg(tblName));
}