hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Gates (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-8107) Bad error message for non-existent table in update and delete
Date Mon, 15 Sep 2014 19:58:34 GMT

     [ https://issues.apache.org/jira/browse/HIVE-8107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alan Gates updated HIVE-8107:
-----------------------------
    Attachment: HIVE-8107.patch

> Bad error message for non-existent table in update and delete
> -------------------------------------------------------------
>
>                 Key: HIVE-8107
>                 URL: https://issues.apache.org/jira/browse/HIVE-8107
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.14.0
>            Reporter: Alan Gates
>            Assignee: Alan Gates
>         Attachments: HIVE-8107.patch
>
>
> update no_such_table set x = 3;
> produces an error message like:
> {noformat}
> 2014-09-12 19:45:00,138 ERROR [main]: ql.Driver (SessionState.java:printError(824)) -
FAILED: SemanticException [Error 10290]: Encountered parse error while parsing rewritten update
or delete query
> org.apache.hadoop.hive.ql.parse.SemanticException: Encountered parse error while parsing
rewritten update or delete query
> 	at org.apache.hadoop.hive.ql.parse.UpdateDeleteSemanticAnalyzer.reparseAndSuperAnalyze(UpdateDeleteSemanticAnalyzer.java:130)
> 	at org.apache.hadoop.hive.ql.parse.UpdateDeleteSemanticAnalyzer.analyzeDelete(UpdateDeleteSemanticAnalyzer.java:97)
> 	at org.apache.hadoop.hive.ql.parse.UpdateDeleteSemanticAnalyzer.analyzeInternal(UpdateDeleteSemanticAnalyzer.java:66)
> 	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:217)
> 	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:406)
> 	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:302)
> 	at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1051)
> 	at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1121)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:988)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:978)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:246)
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:198)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:408)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:344)
> 	at org.apache.hadoop.hive.cli.CliDriver.processReader(CliDriver.java:441)
> 	at org.apache.hadoop.hive.cli.CliDriver.processFile(CliDriver.java:457)
> 	at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:737)
> 	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:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
> 	at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
> Caused by: org.apache.hadoop.hive.ql.metadata.InvalidTableException: Table not found
no_such_table
> 	at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:1008)
> 	at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:978)
> 	at org.apache.hadoop.hive.ql.parse.UpdateDeleteSemanticAnalyzer.reparseAndSuperAnalyze(UpdateDeleteSemanticAnalyzer.java:128)
> 	... 24 more
> {noformat}
> It should give something much cleaner, or at least push the Table not found message to
the top rather than bury it in an exception stack.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message