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

    ctx.setResFile(ctx.getLocalTmpPath());

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

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

    task.setFetchSource(true);
    setFetchTask(createFetchTask(AlterResourcePlanValidateDesc.SCHEMA));

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