[ https://issues.apache.org/jira/browse/EAGLE-330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15318010#comment-15318010 ]
ASF GitHub Bot commented on EAGLE-330: -------------------------------------- GitHub user wangyum opened a pull request: https://github.com/apache/incubator-eagle/pull/227 EAGLE-330 Fix Hive ql.Parser can't parser a hive query sql with keywords. [EAGLE-330](https://issues.apache.org/jira/browse/EAGLE-330):Fix Hive ql.Parser can't parser a hive query sql with keywords Updated Parser.java and TestParser.java You can merge this pull request into a Git repository by running: $ git pull https://github.com/wangyum/incubator-eagle hiveQueryParser Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-eagle/pull/227.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #227 ---- commit db88a997c1daade7f1c4eb3ccddf548b12fd777e Author: Yuming Wang <wangyum...@yhd.com> Date: 2016-06-07T06:50:59Z Fix hive query sql with keywords. ---- > Hive ql.Parser can't parser a hive query sql with keywords > ---------------------------------------------------------- > > Key: EAGLE-330 > URL: https://issues.apache.org/jira/browse/EAGLE-330 > Project: Eagle > Issue Type: Bug > Affects Versions: v0.3.0, v0.4.0 > Reporter: Yuming Wang > Priority: Minor > > _org.apache.eagle.security.hive.ql.Parser_ can't parser a hive query sql with > keywords,It will throw: > {panel} > java.lang.NullPointerException > at org.apache.hadoop.hive.conf.HiveConf.getBoolVar(HiveConf.java:2583) > at > org.apache.hadoop.hive.ql.parse.HiveParser.useSQL11ReservedKeywordsForIdentifier(HiveParser.java:1000) > at > org.apache.hadoop.hive.ql.parse.HiveParser_IdentifiersParser.useSQL11ReservedKeywordsForIdentifier(HiveParser_IdentifiersParser.java:726) > at > org.apache.hadoop.hive.ql.parse.HiveParser_IdentifiersParser.identifier(HiveParser_IdentifiersParser.java:10922) > at > org.apache.hadoop.hive.ql.parse.HiveParser.identifier(HiveParser.java:45850) > at > org.apache.hadoop.hive.ql.parse.HiveParser_FromClauseParser.tableOrColumn(HiveParser_FromClauseParser.java:1146) > ... > {panel} > [HIVE-10731|https://issues.apache.org/jira/browse/HIVE-10731] fix > *NullPointerException* but will throw *FailedPredicateException* > {panel} > FailedPredicateException(identifier,{useSQL11ReservedKeywordsForIdentifier()}?) > at > org.apache.hadoop.hive.ql.parse.HiveParser_IdentifiersParser.identifier(HiveParser_IdentifiersParser.java:11833) > at > org.apache.hadoop.hive.ql.parse.HiveParser.identifier(HiveParser.java:47987) > at > org.apache.hadoop.hive.ql.parse.HiveParser_FromClauseParser.tableOrColumn(HiveParser_FromClauseParser.java:1174) > at > org.apache.hadoop.hive.ql.parse.HiveParser.tableOrColumn(HiveParser.java:47993) > ... > {panel} > so we should construct a HiveConf and {code}set > hive.support.sql11.reserved.keywords=false{code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)