hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darren Yin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-8082) generateErrorMessage doesn't handle null ast properly
Date Fri, 12 Sep 2014 21:32:34 GMT
Darren Yin created HIVE-8082:
--------------------------------

             Summary: generateErrorMessage doesn't handle null ast properly
                 Key: HIVE-8082
                 URL: https://issues.apache.org/jira/browse/HIVE-8082
             Project: Hive
          Issue Type: Bug
    Affects Versions: 0.13.1, 0.13.0, 0.12.0, 0.11.0
         Environment: anything
            Reporter: Darren Yin
            Priority: Minor


in SemanticAnalzyer.genUnionPlan, tabref can be null, and if then one of the "throw new SemanticException"
lines gets called, generateErrorMessage will error out with a NullPointerException when ast.getLine()
is called. The fix is just to add a check for if (ast == null)

example stack trace:
{noformat}
2014-09-12 14:02:3014/09/12 21:02:30 ERROR ql.Driver: FAILED: NullPointerException null
2014-09-12 14:02:30java.lang.NullPointerException
2014-09-12 14:02:30	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.generateErrorMessage(SemanticAnalyzer.java:484)
2014-09-12 14:02:30	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genUnionPlan(SemanticAnalyzer.java:7411)
2014-09-12 14:02:30	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genPlan(SemanticAnalyzer.java:7970)
2014-09-12 14:02:30	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genPlan(SemanticAnalyzer.java:7985)
2014-09-12 14:02:30	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:8693)
2014-09-12 14:02:30	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:278)
2014-09-12 14:02:30	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:458)
2014-09-12 14:02:30	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:407)
2014-09-12 14:02:30	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:339)
2014-09-12 14:02:30	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:969)
2014-09-12 14:02:30	at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:261)
2014-09-12 14:02:30	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:218)
2014-09-12 14:02:30	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:421)
2014-09-12 14:02:30	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:356)
2014-09-12 14:02:30	at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:714)
2014-09-12 14:02:30	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:622)
2014-09-12 14:02:30	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-09-12 14:02:30	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2014-09-12 14:02:30	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2014-09-12 14:02:30	at java.lang.reflect.Method.invoke(Method.java:597)
2014-09-12 14:02:30	at org.apache.hadoop.util.RunJar.main(RunJar.java:208)
{noformat}




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

Mime
View raw message