[ 
https://issues.apache.org/jira/browse/PIG-1925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009336#comment-13009336
 ] 

Alan Gates commented on PIG-1925:
---------------------------------

A couple of comments.  One, 1:9.  I assume this means line 1 column 9.  It 
would be better to spell that out.

I think for parser errors it would be good to explicitly say "Syntax error, 
unexpected symbol at or near 'A'".  This way people explicitly know it's in 
their syntax.

> Parser error message doesn't show location of the error or show it as Line 0:0
> ------------------------------------------------------------------------------
>
>                 Key: PIG-1925
>                 URL: https://issues.apache.org/jira/browse/PIG-1925
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>             Fix For: 0.9.0
>
>         Attachments: PIG-1925.patch
>
>
> When Parser emits an error from one of the tree parsers (like AST validation 
> or plan generation), Line number is missing or printed as Line 0:0. Further 
> investigation shows that Antlr 3.2 isn't able to report the correct line 
> number and line offset. We need to address it in Pig code.
> The following is an example.
> grunt> A = load 'x' as (u, v, u, w);
> 2011-03-21 10:04:44,486 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 
> 0: Duplicated alias in schema: u
> It's desirable to have line number/offset in such kind of error messages.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to