[ https://issues.apache.org/jira/browse/HIVE-3282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427305#comment-13427305 ]
Hudson commented on HIVE-3282: ------------------------------ Integrated in Hive-trunk-h0.21 #1586 (See [https://builds.apache.org/job/Hive-trunk-h0.21/1586/]) HIVE-3282 Convert runtime exceptions to semantic exceptions for missing partitions/tables in show/describe statements (Sambavi Muthukrishnan via namit) (Revision 1368352) Result = SUCCESS namit : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1368352 Files : * /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java * /hive/trunk/ql/src/test/queries/clientnegative/desc_failure1.q * /hive/trunk/ql/src/test/queries/clientnegative/desc_failure2.q * /hive/trunk/ql/src/test/queries/clientnegative/show_partitions1.q * /hive/trunk/ql/src/test/queries/clientnegative/show_tableproperties1.q * /hive/trunk/ql/src/test/queries/clientpositive/desc_non_existent_tbl.q * /hive/trunk/ql/src/test/queries/clientpositive/inputddl6.q * /hive/trunk/ql/src/test/queries/clientpositive/show_tblproperties.q * /hive/trunk/ql/src/test/results/clientnegative/desc_failure1.q.out * /hive/trunk/ql/src/test/results/clientnegative/desc_failure2.q.out * /hive/trunk/ql/src/test/results/clientnegative/show_partitions1.q.out * /hive/trunk/ql/src/test/results/clientnegative/show_tableproperties1.q.out * /hive/trunk/ql/src/test/results/clientnegative/show_tables_bad_db1.q.out * /hive/trunk/ql/src/test/results/clientnegative/show_tables_bad_db2.q.out * /hive/trunk/ql/src/test/results/clientnegative/show_tablestatus.q.out * /hive/trunk/ql/src/test/results/clientnegative/show_tablestatus_not_existing_part.q.out * /hive/trunk/ql/src/test/results/clientpositive/desc_non_existent_tbl.q.out * /hive/trunk/ql/src/test/results/clientpositive/inputddl6.q.out * /hive/trunk/ql/src/test/results/clientpositive/show_tblproperties.q.out > Convert runtime exceptions to semantic exceptions for missing > partitions/tables in show/describe statements > ----------------------------------------------------------------------------------------------------------- > > Key: HIVE-3282 > URL: https://issues.apache.org/jira/browse/HIVE-3282 > Project: Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 0.9.0 > Reporter: Sambavi Muthukrishnan > Assignee: Sambavi Muthukrishnan > Priority: Minor > Fix For: 0.9.1 > > Attachments: HIVE-3282.1.patch > > Original Estimate: 24h > Remaining Estimate: 24h > > 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 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira