@Override
  public int execute() throws HiveException, IOException {
    WMNullablePool pool = new WMNullablePool(desc.getResourcePlanName(), desc.getPoolPath());
    if (desc.getAllocFraction() != null) {
      pool.setAllocFraction(desc.getAllocFraction());
    }
    if (desc.getQueryParallelism() != null) {
      pool.setQueryParallelism(desc.getQueryParallelism());
    }
    if (desc.getSchedulingPolicy() != null || desc.isRemoveSchedulingPolicy()) {
      pool.setIsSetSchedulingPolicy(true);
      pool.setSchedulingPolicy(desc.getSchedulingPolicy());
    }
    if (desc.getNewPath() != null) {
      pool.setPoolPath(desc.getNewPath());
    }

    context.getDb().alterWMPool(pool, desc.getPoolPath());

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