@Override
  public void analyzeInternal(ASTNode root) throws SemanticException {
    if (root.getChildCount() != 3) {
      throw new SemanticException("Invalid syntax for alter pool add trigger: " + root.toStringTree());
    }

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

    String poolPath = root.getChild(1).getType() == HiveParser.TOK_UNMANAGED ?
        null : WMUtils.poolPath(root.getChild(1));
    String triggerName = unescapeIdentifier(root.getChild(2).getText());

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

    DDLUtils.addServiceOutput(conf, getOutputs());
  }
Analyzer for alter pool drop trigger commands.
ql/src/java/org/apache/hadoop/hive/ql/ddl/workloadmanagement/trigger/pool/drop/AlterPoolDropTriggerAnalyzer.java