hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hari Sankar Sivarama Subramaniyan (JIRA)" <>
Subject [jira] [Commented] (HIVE-13615) nomore_ambiguous_table_col.q is failing on master
Date Fri, 29 Apr 2016 22:19:13 GMT


Hari Sankar Sivarama Subramaniyan commented on HIVE-13615:

Reason for the following:
In addition to that error message has changed for -ve test cases of =nonkey_groupby.q,subquery_shared_alias.q,clustern3.q,clustern4.q,udtf_not_supported1.q,selectDistinctStarNeg_2.q
We are losing line number and char position in error message.

Its because of the below line :
nonReserved -> Identifier[$nonReserved.text]

The above line generates the following code via ANTLR.
                    // 617:19: -> Identifier[$nonReserved.text]
                        (CommonTree)adaptor.create(Identifier, (nonReserved277!=null?input.toString(nonReserved277.start,nonReserved277.stop):null))


The problem here is that it creates a new Identifier object at the expense of losing the nonReserved277
token information such as start /end index, line number, etc.

The fix would be to change the line to below:

nonReserved -> Identifier[$nonReserved.start]

This would prevent losing any valuable token information when the keyword input is transformed
to an identifier token.

> nomore_ambiguous_table_col.q is failing on master
> -------------------------------------------------
>                 Key: HIVE-13615
>                 URL:
>             Project: Hive
>          Issue Type: Test
>          Components: Parser
>    Affects Versions: 2.1.0
>            Reporter: Ashutosh Chauhan
>            Assignee: Hari Sankar Sivarama Subramaniyan
>         Attachments: HIVE-13615.1.patch
> Fails with:
> FAILED: ParseException line 3:9 cannot recognize input near 'src' 'key' 'INSERT' in from
source 0

This message was sent by Atlassian JIRA

View raw message