public static void validateTrigger(WMTrigger trigger) throws HiveException {
    try {
      ExecutionTrigger.fromWMTrigger(trigger);
    } catch (IllegalArgumentException e) {
      throw new HiveException(e);
    }
  }
Common utilities for Trigger related ddl operations.
ql/src/java/org/apache/hadoop/hive/ql/ddl/workloadmanagement/trigger/TriggerUtils.java