@Override
  public void analyzeInternal(ASTNode root) throws SemanticException {
    if (root.getChildCount() != 2) {
      throw new SemanticException("Expected two arguments");
    }

    String resourcePlanName = unescapeIdentifier(root.getChild(0).getText());
    String newResourcePlanName = unescapeIdentifier(root.getChild(1).getText());

    AlterResourcePlanRenameDesc desc = new AlterResourcePlanRenameDesc(resourcePlanName, newResourcePlanName);
    Task<DDLWork> task = TaskFactory.get(new DDLWork(getInputs(), getOutputs(), desc));
    rootTasks.add(task);

    DDLUtils.addServiceOutput(conf, getOutputs());
  }
Analyzer for alter resource plan rename commands.
ql/src/java/org/apache/hadoop/hive/ql/ddl/workloadmanagement/resourceplan/alter/rename/AlterResourcePlanRenameAnalyzer.java