You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by Shreepadma Venugopalan <sh...@cloudera.com> on 2013/06/03 19:50:23 UTC
Re: Review Request: HIVE-4547: A complex create view statement fails with
new Antlr 3.4
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/11084/#review21332
-----------------------------------------------------------
Ship it!
LGTM. +1 (non-binding).
- Shreepadma Venugopalan
On May 13, 2013, 9:06 a.m., Prasad Mujumdar wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/11084/
> -----------------------------------------------------------
>
> (Updated May 13, 2013, 9:06 a.m.)
>
>
> Review request for hive and Ashutosh Chauhan.
>
>
> Description
> -------
>
> The parser has a translation map where its possible to replace all the text with the appropriate escaped version in case of a view creation. This holds all individual translations and where they apply in the view definition.
> The newer antlr version seems to be more restrictive and throws assertion if there's an overlaps in these escape positions. The original patch for antlr upgrade added a check to take care of some of the simpler overlap cases found by unit tests. There are few more scenarios like the one in the customer case which are not covered.
> The patch includes Traverse the list of translation in a loop and look for all the possible overlaps.
>
>
> This addresses bug HIVE-4547.
> https://issues.apache.org/jira/browse/HIVE-4547
>
>
> Diffs
> -----
>
> data/files/v1.txt PRE-CREATION
> data/files/v2.txt PRE-CREATION
> ql/src/java/org/apache/hadoop/hive/ql/parse/UnparseTranslator.java ec2c088
> ql/src/test/queries/clientpositive/view_cast.q PRE-CREATION
> ql/src/test/results/clientpositive/view_cast.q.out PRE-CREATION
>
> Diff: https://reviews.apache.org/r/11084/diff/
>
>
> Testing
> -------
>
> Ran full test suite.
> Added new test.
>
>
> Thanks,
>
> Prasad Mujumdar
>
>