@Override
  public void analyzeInternal(ASTNode root) throws SemanticException {
    if (root.getChildCount() > 1) {
      throw new SemanticException("Incorrect syntax");
    }

    String resourcePlanName = root.getChildCount() == 0 ? null : unescapeIdentifier(root.getChild(0).getText());

    AlterResourcePlanDisableDesc desc = new AlterResourcePlanDisableDesc(resourcePlanName);
    rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(), desc)));

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