@Override
  public int execute() throws HiveException, IOException {
    WMNullableResourcePlan resourcePlan = new WMNullableResourcePlan();
    resourcePlan.setName(desc.getNewResourcePlanName());

    context.getDb().alterResourcePlan(desc.getResourcePlanName(), resourcePlan, false, false, false);
    return 0;
  }
Operation process of altering a resource plan.
ql/src/java/org/apache/hadoop/hive/ql/ddl/workloadmanagement/resourceplan/alter/rename/AlterResourcePlanRenameOperation.java