You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eagle.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/10/17 03:05:58 UTC
[jira] [Commented] (EAGLE-629) hive.ql.Parser can`t parse hive sql
with keyword
[ https://issues.apache.org/jira/browse/EAGLE-629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15581040#comment-15581040 ]
ASF GitHub Bot commented on EAGLE-629:
--------------------------------------
GitHub user chitin opened a pull request:
https://github.com/apache/incubator-eagle/pull/517
EAGLE-629 hive.ql.Parser can`t parse hive sql with keyword
EAGLE-629 hive.ql.Parser can`t parse hive sql with keyword
- Construct a HiveConf and set hive.support.sql11.reserved.keywords=false
https://issues.apache.org/jira/browse/EAGLE-629
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/chitin/incubator-eagle EAGLE629
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-eagle/pull/517.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 #517
----
commit 7b5d89c37e5d53633077fa7f5907a2a0974b8b1b
Author: chitin <ch...@gmail.com>
Date: 2016-10-13T05:19:18Z
EAGLE-615 Jsoup parse hive sql return String without line break "\n"
- add "doc.outputSettings().prettyPrint(false);", get element value via getWholeText(),not text()
commit d56b1af63bc3d2a9e99e199acfec08963f2d98e9
Author: chitin <ch...@gmail.com>
Date: 2016-10-17T02:37:43Z
Merge branch 'master' of github.com:apache/incubator-eagle into master4
commit 35a9ec7d855fe4f2ed08090efb9703dce6928ae8
Author: chitin <ch...@gmail.com>
Date: 2016-10-17T03:01:11Z
EAGLE-629 hive.ql.Parser can`t parse hive sql with keyword
- Construct a HiveConf and set hive.support.sql11.reserved.keywords=false
https://issues.apache.org/jira/browse/EAGLE-629
----
> hive.ql.Parser can`t parse hive sql with keyword
> ------------------------------------------------
>
> Key: EAGLE-629
> URL: https://issues.apache.org/jira/browse/EAGLE-629
> Project: Eagle
> Issue Type: Bug
> Environment: hive1.2.1
> Reporter: Lingang Deng
> Assignee: Lingang Deng
>
> org.apache.eagle.security.hive.ql.Parser can't parser a hive query sql with keywords,It will throw:
> {code:java}
> Exception in thread "main" 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.tableName(HiveParser_FromClauseParser.java:4764)
> at org.apache.hadoop.hive.ql.parse.HiveParser_FromClauseParser.tableAllColumns(HiveParser_FromClauseParser.java:1048)
> at org.apache.hadoop.hive.ql.parse.HiveParser.tableAllColumns(HiveParser.java:45900)
> at org.apache.hadoop.hive.ql.parse.HiveParser_SelectClauseParser.synpred1_SelectClauseParser_fragment(HiveParser_SelectClauseParser.java:5514)
> at org.apache.hadoop.hive.ql.parse.HiveParser_SelectClauseParser.synpred1_SelectClauseParser(HiveParser_SelectClauseParser.java:5560)
> at org.apache.hadoop.hive.ql.parse.HiveParser_SelectClauseParser$DFA17.specialStateTransition(HiveParser_SelectClauseParser.java:11160)
> at org.antlr.runtime.DFA.predict(DFA.java:80)
> at org.apache.hadoop.hive.ql.parse.HiveParser_SelectClauseParser.selectItem(HiveParser_SelectClauseParser.java:2853)
> at org.apache.hadoop.hive.ql.parse.HiveParser_SelectClauseParser.selectList(HiveParser_SelectClauseParser.java:1373)
> at org.apache.hadoop.hive.ql.parse.HiveParser_SelectClauseParser.selectClause(HiveParser_SelectClauseParser.java:1128)
> at org.apache.hadoop.hive.ql.parse.HiveParser.selectClause(HiveParser.java:45827)
> at org.apache.hadoop.hive.ql.parse.HiveParser.selectStatement(HiveParser.java:41495)
> at org.apache.hadoop.hive.ql.parse.HiveParser.regularBody(HiveParser.java:41230)
> at org.apache.hadoop.hive.ql.parse.HiveParser.queryStatementExpressionBody(HiveParser.java:40413)
> at org.apache.hadoop.hive.ql.parse.HiveParser.queryStatementExpression(HiveParser.java:40283)
> at org.apache.hadoop.hive.ql.parse.HiveParser.execStatement(HiveParser.java:1590)
> at org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:1109)
> at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:202)
> at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:166)
> at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:161)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)