Yuming Wang created EAGLE-330: --------------------------------- Summary: 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)