@Override
  public int execute() throws HiveException, IOException {
    WMValidateResourcePlanResponse result = context.getDb().validateResourcePlan(desc.getResourcePlanName());
    try (DataOutputStream out = ShowUtils.getOutputStream(desc.getResFile(), context)) {
      MetaDataFormatUtils.getFormatter(context.getConf()).showErrors(out, result);
    } catch (IOException e) {
      throw new HiveException(e);
    }
    return 0;
  }
Operation process of validating a resource plan.
ql/src/java/org/apache/hadoop/hive/ql/ddl/workloadmanagement/resourceplan/alter/validate/AlterResourcePlanValidateOperation.java