diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java index f15755f..6482735 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java @@ -3933,7 +3933,7 @@ private int createTable(Hive db, CreateTableDesc crtTbl) throws HiveException { tbl.getTTable().getSd().setOutputFormat(tbl.getOutputFormatClass().getName()); } - if (!Utilities.isDefaultNameNode(conf) && tbl.getTTable().getSd().isSetLocation()) { + if (!Utilities.isDefaultNameNode(conf)) { // If location is specified - ensure that it is a full qualified name makeLocationQualified(tbl.getDbName(), tbl.getTTable().getSd(), tbl.getTableName()); }