[ https://issues.apache.org/jira/browse/HIVE-4723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13807197#comment-13807197 ]
Szehon Ho commented on HIVE-4723: --------------------------------- There were two negative tests that expected the exception to be swallowed during semantic analysis, and for execution to continue and the DDL Task to fail. Changed the test output accordingly to only expect the exception during the semantic analysis and not proceed further. > DDLSemanticAnalyzer.addTablePartsOutputs eats several exceptions > ---------------------------------------------------------------- > > Key: HIVE-4723 > URL: https://issues.apache.org/jira/browse/HIVE-4723 > Project: Hive > Issue Type: Bug > Affects Versions: 0.12.0 > Reporter: Brock Noland > Assignee: Szehon Ho > Attachments: HIVE-4723.1.patch, HIVE-4723.patch > > > I accidently tried to archive a partition on a non-partitioned table. The > error message was bad, hive ate an exception, and NPE'ed. > {noformat} > 2013-06-09 16:36:12,628 ERROR parse.DDLSemanticAnalyzer > (DDLSemanticAnalyzer.java:addTablePartsOutputs(2899)) - Got HiveException > during obtaining list of partitions > 2013-06-09 16:36:12,628 ERROR ql.Driver (SessionState.java:printError(383)) - > FAILED: NullPointerException null > java.lang.NullPointerException > at > org.apache.hadoop.hive.ql.parse.DDLSemanticAnalyzer.addTablePartsOutputs(DDLSemanticAnalyzer.java:2912) > at > org.apache.hadoop.hive.ql.parse.DDLSemanticAnalyzer.addTablePartsOutputs(DDLSemanticAnalyzer.java:2877) > at > org.apache.hadoop.hive.ql.parse.DDLSemanticAnalyzer.analyzeAlterTableArchive(DDLSemanticAnalyzer.java:2730) > at > org.apache.hadoop.hive.ql.parse.DDLSemanticAnalyzer.analyzeInternal(DDLSemanticAnalyzer.java:316) > at > org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:277) > at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:433) > at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:337) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:902) > at > org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:259) > at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:216) > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:413) > at > org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:782) > at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675) > at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:614) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.util.RunJar.main(RunJar.java:156) > {noformat} -- This message was sent by Atlassian JIRA (v6.1#6144)