@Override
  public int execute() throws HiveException, IOException {
    WMMapping mapping = new WMMapping(desc.getResourcePlanName(), desc.getEntityType(), desc.getEntityName());
    mapping.setPoolPath(desc.getPoolPath());
    if (desc.getOrdering() != null) {
      mapping.setOrdering(desc.getOrdering());
    }

    context.getDb().createOrUpdateWMMapping(mapping, true);

    return 0;
  }
Operation process of altering a workload management mapping.
ql/src/java/org/apache/hadoop/hive/ql/ddl/workloadmanagement/mapping/alter/AlterWMMappingOperation.java