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

    if (desc.isUnsetQueryParallelism()) {
      resourcePlan.setIsSetQueryParallelism(true);
      resourcePlan.unsetQueryParallelism();
    }

    if (desc.isUnsetDefaultPool()) {
      resourcePlan.setIsSetDefaultPoolPath(true);
      resourcePlan.unsetDefaultPoolPath();
    }

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