[jira] [Updated] (HIVE-13101) NullPointerException in HiveLexer.g
[ https://issues.apache.org/jira/browse/HIVE-13101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xuefu Zhang updated HIVE-13101: --- Resolution: Fixed Fix Version/s: 2.1.0 Status: Resolved (was: Patch Available) Committed to master. Thanks, Sandeep! Thanks to Pengcheng for the review. > NullPointerException in HiveLexer.g > --- > > Key: HIVE-13101 > URL: https://issues.apache.org/jira/browse/HIVE-13101 > Project: Hive > Issue Type: Bug > Components: Query Planning >Affects Versions: 2.0.0 >Reporter: sandeep akinapelli >Assignee: sandeep akinapelli >Priority: Minor > Fix For: 2.1.0 > > Attachments: HIVE-13101.1.patch > > > In HiveLexer.g: > {code:Java} > protected boolean allowQuotedId() { > String supportedQIds = HiveConf.getVar(hiveConf, > HiveConf.ConfVars.HIVE_QUOTEDID_SUPPORT); > return !"none".equals(supportedQIds); > } > {code} > NullPointerException is thrown when hiveConf is not set. > Stack trace: > {code:Java}java.lang.NullPointerException > at org.apache.hadoop.hive.conf.HiveConf.getVar(HiveConf.java:3142) > ~[hive-exec-2.0.0.jar:2.0.0] > at > org.apache.hadoop.hive.ql.parse.HiveLexer.allowQuotedId(HiveLexer.java:360) > ~[hive-exec-2.0.0.jar:2.0.0] > at > org.apache.hadoop.hive.ql.parse.HiveLexer$DFA21.specialStateTransition(HiveLexer.java:11522) > ~[hive-exec-2.0.0.jar:2.0.0] > at org.antlr.runtime.DFA.predict(DFA.java:80) > ~[antlr-runtime-3.5.1.jar:3.5.1] > at > org.apache.hadoop.hive.ql.parse.HiveLexer.mIdentifier(HiveLexer.java:8357) > ~[hive-exec-2.0.0.jar:2.0.0] > at > org.apache.hadoop.hive.ql.parse.HiveLexer.mTokens(HiveLexer.java:11395) > ~[hive-exec-2.0.0.jar:2.0.0] > at org.antlr.runtime.Lexer.nextToken(Lexer.java:85) > ~[antlr-runtime-3.5.1.jar:3.5.1] > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (HIVE-13101) NullPointerException in HiveLexer.g
[ https://issues.apache.org/jira/browse/HIVE-13101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] sandeep akinapelli updated HIVE-13101: -- Status: Patch Available (was: Open) > NullPointerException in HiveLexer.g > --- > > Key: HIVE-13101 > URL: https://issues.apache.org/jira/browse/HIVE-13101 > Project: Hive > Issue Type: Bug > Components: Query Planning >Affects Versions: 2.0.0 >Reporter: sandeep akinapelli >Assignee: sandeep akinapelli >Priority: Minor > Attachments: HIVE-13101.1.patch > > > In HiveLexer.g: > {code:Java} > protected boolean allowQuotedId() { > String supportedQIds = HiveConf.getVar(hiveConf, > HiveConf.ConfVars.HIVE_QUOTEDID_SUPPORT); > return !"none".equals(supportedQIds); > } > {code} > NullPointerException is thrown when hiveConf is not set. > Stack trace: > {code:Java}java.lang.NullPointerException > at org.apache.hadoop.hive.conf.HiveConf.getVar(HiveConf.java:3142) > ~[hive-exec-2.0.0.jar:2.0.0] > at > org.apache.hadoop.hive.ql.parse.HiveLexer.allowQuotedId(HiveLexer.java:360) > ~[hive-exec-2.0.0.jar:2.0.0] > at > org.apache.hadoop.hive.ql.parse.HiveLexer$DFA21.specialStateTransition(HiveLexer.java:11522) > ~[hive-exec-2.0.0.jar:2.0.0] > at org.antlr.runtime.DFA.predict(DFA.java:80) > ~[antlr-runtime-3.5.1.jar:3.5.1] > at > org.apache.hadoop.hive.ql.parse.HiveLexer.mIdentifier(HiveLexer.java:8357) > ~[hive-exec-2.0.0.jar:2.0.0] > at > org.apache.hadoop.hive.ql.parse.HiveLexer.mTokens(HiveLexer.java:11395) > ~[hive-exec-2.0.0.jar:2.0.0] > at org.antlr.runtime.Lexer.nextToken(Lexer.java:85) > ~[antlr-runtime-3.5.1.jar:3.5.1] > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (HIVE-13101) NullPointerException in HiveLexer.g
[ https://issues.apache.org/jira/browse/HIVE-13101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] sandeep akinapelli updated HIVE-13101: -- Attachment: HIVE-13101.1.patch Checks null and returns false by default. > NullPointerException in HiveLexer.g > --- > > Key: HIVE-13101 > URL: https://issues.apache.org/jira/browse/HIVE-13101 > Project: Hive > Issue Type: Bug > Components: Query Planning >Affects Versions: 2.0.0 >Reporter: sandeep akinapelli >Assignee: sandeep akinapelli >Priority: Minor > Attachments: HIVE-13101.1.patch > > > In HiveLexer.g: > {code:Java} > protected boolean allowQuotedId() { > String supportedQIds = HiveConf.getVar(hiveConf, > HiveConf.ConfVars.HIVE_QUOTEDID_SUPPORT); > return !"none".equals(supportedQIds); > } > {code} > NullPointerException is thrown when hiveConf is not set. > Stack trace: > {code:Java}java.lang.NullPointerException > at org.apache.hadoop.hive.conf.HiveConf.getVar(HiveConf.java:3142) > ~[hive-exec-2.0.0.jar:2.0.0] > at > org.apache.hadoop.hive.ql.parse.HiveLexer.allowQuotedId(HiveLexer.java:360) > ~[hive-exec-2.0.0.jar:2.0.0] > at > org.apache.hadoop.hive.ql.parse.HiveLexer$DFA21.specialStateTransition(HiveLexer.java:11522) > ~[hive-exec-2.0.0.jar:2.0.0] > at org.antlr.runtime.DFA.predict(DFA.java:80) > ~[antlr-runtime-3.5.1.jar:3.5.1] > at > org.apache.hadoop.hive.ql.parse.HiveLexer.mIdentifier(HiveLexer.java:8357) > ~[hive-exec-2.0.0.jar:2.0.0] > at > org.apache.hadoop.hive.ql.parse.HiveLexer.mTokens(HiveLexer.java:11395) > ~[hive-exec-2.0.0.jar:2.0.0] > at org.antlr.runtime.Lexer.nextToken(Lexer.java:85) > ~[antlr-runtime-3.5.1.jar:3.5.1] > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)