[
https://issues.apache.org/jira/browse/HIVE-4067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ashutosh Chauhan updated HIVE-4067:
-----------------------------------
Status: Open (was: Patch Available)
I started getting following errors while compiling after HIVE-701 This patch
doesn't address these.
{noformat}
[java] error(111):
/home/ashutosh/hive/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g:303:10:
reference to attribute outside of a rule: KEY
[java] error(111):
/home/ashutosh/hive/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g:303:10:
reference to attribute outside of a rule: VALUE
[java] error(111):
/home/ashutosh/hive/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g:303:10:
reference to attribute outside of a rule: ELEM
[java] error(146):
/home/ashutosh/hive/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g:303:10:
invalid StringTemplate % shorthand syntax: '%")'
{noformat}
I also suspect its because of this, we later get
{noformat}
[java] Java Result: 1
{noformat}
at the conclusion of grammar compilation. The way we compile grammar is by
calling out to java process from within ant which runs org.antlr.Tool to
compile grammar. This java process used to return with return code = 0 before
HIVE-701 but now returns with return code = 1 which implies some error
condition. My suspicion its the error which I have pointed out is causing this.
We should fix both these problems.
> Followup to HIVE-701: reduce ambiguity in grammar
> -------------------------------------------------
>
> Key: HIVE-4067
> URL: https://issues.apache.org/jira/browse/HIVE-4067
> Project: Hive
> Issue Type: Bug
> Components: Query Processor
> Affects Versions: 0.11.0
> Reporter: Samuel Yuan
> Assignee: Samuel Yuan
> Priority: Minor
> Attachments: HIVE-4067.D8883.1.patch
>
>
> After HIVE-701 the grammar has become much more ambiguous, and the
> compilation generates a large number of warnings. Making FROM, DISTINCT,
> PRESERVE, COLUMN, ALL, AND, OR, and NOT reserved keywords again reduces the
> number of warnings to 134, up from the original 81 warnings but down from the
> 565 after HIVE-701. Most of the remaining ambiguity is trivial, an example
> being "KW_ELEM_TYPE | KW_KEY_TYPE | KW_VALUE_TYPE | identifier", and they are
> all correctly handled by ANTLR.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira