diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/StatsTask.java ql/src/java/org/apache/hadoop/hive/ql/exec/StatsTask.java index c1dbd24018..fba9f84155 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/StatsTask.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/StatsTask.java @@ -119,12 +119,7 @@ public int execute(DriverContext driverContext) { private Table getTable(Hive db) throws SemanticException, HiveException { - Table tbl = work.getTable(); - // FIXME for ctas this is still needed because location is not set sometimes - if (tbl.getSd().getLocation() == null) { - tbl = db.getTable(work.getFullTableName()); - } - return tbl; + return db.getTable(work.getFullTableName()); } @Override