Index: ql/src/test/results/clientnegative/drop_partition_failure2.q.out =================================================================== --- ql/src/test/results/clientnegative/drop_partition_failure2.q.out (revision 0) +++ ql/src/test/results/clientnegative/drop_partition_failure2.q.out (revision 0) @@ -0,0 +1 @@ +FAILED: SemanticException [Error 10001]: Table not found fake_table Index: ql/src/test/queries/clientnegative/drop_partition_failure2.q =================================================================== --- ql/src/test/queries/clientnegative/drop_partition_failure2.q (revision 0) +++ ql/src/test/queries/clientnegative/drop_partition_failure2.q (revision 0) @@ -0,0 +1,3 @@ +-- Verifies that dropping a partition from a table that doesn't exist fails appropriately + +ALTER TABLE fake_table DROP PARTITION (part = '1'); \ No newline at end of file Index: ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java =================================================================== --- ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java (revision 1354311) +++ ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java (working copy) @@ -1793,7 +1793,7 @@ Table tab = null; try { - tab = db.getTable(db.getCurrentDatabase(), tblName, false); + tab = db.getTable(db.getCurrentDatabase(), tblName, true); if (tab != null) { inputs.add(new ReadEntity(tab)); }