@SuppressWarnings("nls")
  @VisibleForTesting
  public void addMapWork(Path path, String alias, Operator<?> work,
      PartitionDesc pd) {
    StringInternUtils.internUriStringsInPath(path);
    List<String> curAliases = pathToAliases.get(path);
    if (curAliases == null) {
      assert (pathToPartitionInfo.get(path) == null);
      curAliases = new ArrayList<>();
      pathToAliases.put(path, curAliases);
      pathToPartitionInfo.put(path, pd);
    } else {
      assert (pathToPartitionInfo.get(path) != null);
    }

    for (String oneAlias : curAliases) {
      if (oneAlias.equals(alias)) {
        throw new RuntimeException("Multiple aliases named: " + alias
            + " for path: " + path);
      }
    }
    curAliases.add(alias);

    if (aliasToWork.get(alias) != null) {
      throw new RuntimeException("Existing work for alias: " + alias);
    }
    aliasToWork.put(alias, work);
  }
@param aliasToPartnInfo
         the aliasToPartnInfo to set
ql/src/java/org/apache/hadoop/hive/ql/plan/MapWork.java