public static List<Path> getInputPathsTez(JobConf job, MapWork work) throws Exception {
    String scratchDir = job.get(DagUtils.TEZ_TMP_DIR_KEY);

    List<Path> paths = getInputPaths(job, work, new Path(scratchDir), null, true);

    return paths;
  }
On Tez we're not creating dummy files when getting/setting input paths.
We let Tez handle the situation. We're also setting the paths in the AM
so we don't want to depend on scratch dir and context.
ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java