public static void addMapWork(MapredWork mr, Table tbl, String alias, Operator<?> work) {
    mr.getMapWork().addMapWork(tbl.getDataLocation(), alias, work, new PartitionDesc(
        Utilities.getTableDesc(tbl), null));
  }
Mimics the actual query compiler in generating end to end plans and testing
them out.
ql/src/test/org/apache/hadoop/hive/ql/exec/TestExecDriver.java