Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.9.0
-
None
-
Reviewed
Description
The SHOW PARTITIONS command in Hive does not check for valid table and partition names during query compilation. Calling this command with non-existent table causes a run-time exception.
The DESC command also does not check for this in semantic analysis.
hive> desc xxxyyy;
OK
Table xxxyyy does not exist
Time taken: 1.403 seconds
hive> show partitions xxxyyy;
Table xxxyyy does not exist
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask