private void updateMrWork(final JobConf job) {
    final String plan = HiveConf.getVar(job, HiveConf.ConfVars.PLAN);
    if (mapWork == null && plan != null && plan.length() > 0) {
      mapWork = Utilities.getMapWork(job);
      pathToPartitionInfo.clear();
      for (final Map.Entry<Path, PartitionDesc> entry : mapWork.getPathToPartitionInfo().entrySet()) {
        // key contains scheme (such as pfile://) and we want only the path portion fix in HIVE-6366
        pathToPartitionInfo.put(StringInternUtils.internUriStringsInPath(
                Path.getPathWithoutSchemeAndAuthority(entry.getKey())), entry.getValue());
      }
    }
  }
Sets the mapWork variable based on the current JobConf in order to get all partitions.

@param job
ql/src/java/org/apache/hadoop/hive/ql/io/parquet/ProjectionPusher.java