You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Xuefu Zhang (JIRA)" <ji...@apache.org> on 2011/03/31 02:55:05 UTC

[jira] [Created] (PIG-1947) Incorrect line number is reported during parsing

Incorrect line number is reported during parsing
------------------------------------------------

                 Key: PIG-1947
                 URL: https://issues.apache.org/jira/browse/PIG-1947
             Project: Pig
          Issue Type: Bug
    Affects Versions: 0.9.0
            Reporter: Xuefu Zhang
            Assignee: Xuefu Zhang


In case of errors in script, Pig parser doesn't report correct the line number always. For example:

script:

A = load 'x' as ( u:int, v:chararray );
sh ls -l;
B = foreach A generate u + v;
store B into 'y';

error reported:

2011-03-30 17:48:04,649 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1039: <file line.pig, line 2, column 25> (Name: Add Type: int Uid: 7)incompatible types in Add Operator left hand side:Unknown right hand side:Unknown

Incorrect line number is also reported when a single line contains multiple Pig statement, such as:
A = load 'x' as( u:int, v:chararray); B = foreach A generate u + v;
store B into 'y';


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

[jira] [Commented] (PIG-1947) Incorrect line number is reported during parsing

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014111#comment-13014111 ] 

Olga Natkovich commented on PIG-1947:
-------------------------------------

If this is not a regression and if fixing it as we move grunt to antlr would be significantly easier, I am ok delaying this till 10. However, if we can have a short term fix that is easy to implement, I would prefer that rout.

Main concern is that if users will get an impression that new parser is not any better or even worse while also dealing with inevitable new bugs, 0.9 release will not be very popular.

> Incorrect line number is reported during parsing
> ------------------------------------------------
>
>                 Key: PIG-1947
>                 URL: https://issues.apache.org/jira/browse/PIG-1947
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>             Fix For: 0.9.0
>
>
> In case of errors in script, Pig parser doesn't report correct the line number always. For example:
> script:
> A = load 'x' as ( u:int, v:chararray );
> sh ls -l;
> B = foreach A generate u + v;
> store B into 'y';
> error reported:
> 2011-03-30 17:48:04,649 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1039: <file line.pig, line 2, column 25> (Name: Add Type: int Uid: 7)incompatible types in Add Operator left hand side:Unknown right hand side:Unknown
> Incorrect line number is also reported when a single line contains multiple Pig statement, such as:
> A = load 'x' as( u:int, v:chararray); B = foreach A generate u + v;
> store B into 'y';

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

[jira] [Updated] (PIG-1947) Incorrect line number is reported during parsing

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Natkovich updated PIG-1947:
--------------------------------

    Fix Version/s: 0.9.0

> Incorrect line number is reported during parsing
> ------------------------------------------------
>
>                 Key: PIG-1947
>                 URL: https://issues.apache.org/jira/browse/PIG-1947
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>             Fix For: 0.9.0
>
>
> In case of errors in script, Pig parser doesn't report correct the line number always. For example:
> script:
> A = load 'x' as ( u:int, v:chararray );
> sh ls -l;
> B = foreach A generate u + v;
> store B into 'y';
> error reported:
> 2011-03-30 17:48:04,649 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1039: <file line.pig, line 2, column 25> (Name: Add Type: int Uid: 7)incompatible types in Add Operator left hand side:Unknown right hand side:Unknown
> Incorrect line number is also reported when a single line contains multiple Pig statement, such as:
> A = load 'x' as( u:int, v:chararray); B = foreach A generate u + v;
> store B into 'y';

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

[jira] [Commented] (PIG-1947) Incorrect line number is reported during parsing

Posted by "Xuefu Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018019#comment-13018019 ] 

Xuefu Zhang commented on PIG-1947:
----------------------------------

patch PIG-1947-2.patch is committed to trunk.

> Incorrect line number is reported during parsing
> ------------------------------------------------
>
>                 Key: PIG-1947
>                 URL: https://issues.apache.org/jira/browse/PIG-1947
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>             Fix For: 0.9.0
>
>         Attachments: PIG-1947-2.patch, PIG-1947.patch
>
>
> In case of errors in script, Pig parser doesn't report correct the line number always. For example:
> script:
> A = load 'x' as ( u:int, v:chararray );
> sh ls -l;
> B = foreach A generate u + v;
> store B into 'y';
> error reported:
> 2011-03-30 17:48:04,649 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1039: <file line.pig, line 2, column 25> (Name: Add Type: int Uid: 7)incompatible types in Add Operator left hand side:Unknown right hand side:Unknown
> Incorrect line number is also reported when a single line contains multiple Pig statement, such as:
> A = load 'x' as( u:int, v:chararray); B = foreach A generate u + v;
> store B into 'y';

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

[jira] [Updated] (PIG-1947) Incorrect line number is reported during parsing

Posted by "Xuefu Zhang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xuefu Zhang updated PIG-1947:
-----------------------------

    Attachment: PIG-1947-2.patch

Updated the patch with test case.
Test-patch run:

     [exec] +1 overall.
     [exec]
     [exec]     +1 @author.  The patch does not contain any @author tags.
     [exec]
     [exec]     +1 tests included.  The patch appears to include 3 new or modified tests.
     [exec]
     [exec]     +1 javadoc.  The javadoc tool did not generate any warning messages.
     [exec]
     [exec]     +1 javac.  The applied patch does not increase the total number of javac compiler warnings.
     [exec]
     [exec]     +1 findbugs.  The patch does not introduce any new Findbugs warnings.
     [exec]
     [exec]     +1 release audit.  The applied patch does not increase the total number of release audit warnings.


> Incorrect line number is reported during parsing
> ------------------------------------------------
>
>                 Key: PIG-1947
>                 URL: https://issues.apache.org/jira/browse/PIG-1947
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>             Fix For: 0.9.0
>
>         Attachments: PIG-1947-2.patch, PIG-1947.patch
>
>
> In case of errors in script, Pig parser doesn't report correct the line number always. For example:
> script:
> A = load 'x' as ( u:int, v:chararray );
> sh ls -l;
> B = foreach A generate u + v;
> store B into 'y';
> error reported:
> 2011-03-30 17:48:04,649 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1039: <file line.pig, line 2, column 25> (Name: Add Type: int Uid: 7)incompatible types in Add Operator left hand side:Unknown right hand side:Unknown
> Incorrect line number is also reported when a single line contains multiple Pig statement, such as:
> A = load 'x' as( u:int, v:chararray); B = foreach A generate u + v;
> store B into 'y';

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

[jira] [Commented] (PIG-1947) Incorrect line number is reported during parsing

Posted by "Thejas M Nair (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017763#comment-13017763 ] 

Thejas M Nair commented on PIG-1947:
------------------------------------

Looks good. +1

> Incorrect line number is reported during parsing
> ------------------------------------------------
>
>                 Key: PIG-1947
>                 URL: https://issues.apache.org/jira/browse/PIG-1947
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>             Fix For: 0.9.0
>
>         Attachments: PIG-1947-2.patch, PIG-1947.patch
>
>
> In case of errors in script, Pig parser doesn't report correct the line number always. For example:
> script:
> A = load 'x' as ( u:int, v:chararray );
> sh ls -l;
> B = foreach A generate u + v;
> store B into 'y';
> error reported:
> 2011-03-30 17:48:04,649 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1039: <file line.pig, line 2, column 25> (Name: Add Type: int Uid: 7)incompatible types in Add Operator left hand side:Unknown right hand side:Unknown
> Incorrect line number is also reported when a single line contains multiple Pig statement, such as:
> A = load 'x' as( u:int, v:chararray); B = foreach A generate u + v;
> store B into 'y';

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

[jira] [Updated] (PIG-1947) Incorrect line number is reported during parsing

Posted by "Xuefu Zhang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xuefu Zhang updated PIG-1947:
-----------------------------

    Attachment: PIG-1947.patch

Temporary fix for the issue. With this patch, Pig is able to correctly report line/column number for batch processing. For interactive mode, The line number can be wrong, which probably doesn't matter as user should assume it's the last line entered, and the column number can be also wrong, which is the same for previous version anyway.

We shall fully address the issue in the next release when we replace the grunt parser. 

> Incorrect line number is reported during parsing
> ------------------------------------------------
>
>                 Key: PIG-1947
>                 URL: https://issues.apache.org/jira/browse/PIG-1947
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>             Fix For: 0.9.0
>
>         Attachments: PIG-1947.patch
>
>
> In case of errors in script, Pig parser doesn't report correct the line number always. For example:
> script:
> A = load 'x' as ( u:int, v:chararray );
> sh ls -l;
> B = foreach A generate u + v;
> store B into 'y';
> error reported:
> 2011-03-30 17:48:04,649 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1039: <file line.pig, line 2, column 25> (Name: Add Type: int Uid: 7)incompatible types in Add Operator left hand side:Unknown right hand side:Unknown
> Incorrect line number is also reported when a single line contains multiple Pig statement, such as:
> A = load 'x' as( u:int, v:chararray); B = foreach A generate u + v;
> store B into 'y';

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

[jira] [Commented] (PIG-1947) Incorrect line number is reported during parsing

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13019945#comment-13019945 ] 

Olga Natkovich commented on PIG-1947:
-------------------------------------

Can you please specify what cases were addressed and what work is remaning?

> Incorrect line number is reported during parsing
> ------------------------------------------------
>
>                 Key: PIG-1947
>                 URL: https://issues.apache.org/jira/browse/PIG-1947
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>             Fix For: 0.10
>
>         Attachments: PIG-1947-2.patch, PIG-1947.patch
>
>
> In case of errors in script, Pig parser doesn't report correct the line number always. For example:
> script:
> A = load 'x' as ( u:int, v:chararray );
> sh ls -l;
> B = foreach A generate u + v;
> store B into 'y';
> error reported:
> 2011-03-30 17:48:04,649 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1039: <file line.pig, line 2, column 25> (Name: Add Type: int Uid: 7)incompatible types in Add Operator left hand side:Unknown right hand side:Unknown
> Incorrect line number is also reported when a single line contains multiple Pig statement, such as:
> A = load 'x' as( u:int, v:chararray); B = foreach A generate u + v;
> store B into 'y';

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

[jira] [Commented] (PIG-1947) Incorrect line number is reported during parsing

Posted by "Xuefu Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014072#comment-13014072 ] 

Xuefu Zhang commented on PIG-1947:
----------------------------------

There were issues with previous release as well. For instance, for the following query,

A = load 'x' as ( u:int, v:chararray );
sh ls;
B = foreach A generate u , v; C = distinct 'xxx';
store C into 'y';

The error message:

2011-03-31 10:02:56,186 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Encountered " <QUOTEDSTRING> "\'xxx\' "" at line 3, column 14.
Was expecting one of:
    <IDENTIFIER> ...
    "(" ...
    "(" ...

While correct line number is reported, 'xxx' is nowhere near column 14.

The point is that we need a better design to handle the error origin as the process of parsing happens in two different parsers.

> Incorrect line number is reported during parsing
> ------------------------------------------------
>
>                 Key: PIG-1947
>                 URL: https://issues.apache.org/jira/browse/PIG-1947
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>             Fix For: 0.9.0
>
>
> In case of errors in script, Pig parser doesn't report correct the line number always. For example:
> script:
> A = load 'x' as ( u:int, v:chararray );
> sh ls -l;
> B = foreach A generate u + v;
> store B into 'y';
> error reported:
> 2011-03-30 17:48:04,649 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1039: <file line.pig, line 2, column 25> (Name: Add Type: int Uid: 7)incompatible types in Add Operator left hand side:Unknown right hand side:Unknown
> Incorrect line number is also reported when a single line contains multiple Pig statement, such as:
> A = load 'x' as( u:int, v:chararray); B = foreach A generate u + v;
> store B into 'y';

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

[jira] [Commented] (PIG-1947) Incorrect line number is reported during parsing

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014133#comment-13014133 ] 

Olga Natkovich commented on PIG-1947:
-------------------------------------

sounds like a good plan!

> Incorrect line number is reported during parsing
> ------------------------------------------------
>
>                 Key: PIG-1947
>                 URL: https://issues.apache.org/jira/browse/PIG-1947
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>             Fix For: 0.9.0
>
>
> In case of errors in script, Pig parser doesn't report correct the line number always. For example:
> script:
> A = load 'x' as ( u:int, v:chararray );
> sh ls -l;
> B = foreach A generate u + v;
> store B into 'y';
> error reported:
> 2011-03-30 17:48:04,649 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1039: <file line.pig, line 2, column 25> (Name: Add Type: int Uid: 7)incompatible types in Add Operator left hand side:Unknown right hand side:Unknown
> Incorrect line number is also reported when a single line contains multiple Pig statement, such as:
> A = load 'x' as( u:int, v:chararray); B = foreach A generate u + v;
> store B into 'y';

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

[jira] [Commented] (PIG-1947) Incorrect line number is reported during parsing

Posted by "Xuefu Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014127#comment-13014127 ] 

Xuefu Zhang commented on PIG-1947:
----------------------------------

The problem is of partly regression (line #) and partly heritage (column #). I think I can put a fix in QueryParser, which may not be perfect but eliminating the need of touching Grunt parser at this time. Then, we can revisit the issue in 0.10.

> Incorrect line number is reported during parsing
> ------------------------------------------------
>
>                 Key: PIG-1947
>                 URL: https://issues.apache.org/jira/browse/PIG-1947
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>             Fix For: 0.9.0
>
>
> In case of errors in script, Pig parser doesn't report correct the line number always. For example:
> script:
> A = load 'x' as ( u:int, v:chararray );
> sh ls -l;
> B = foreach A generate u + v;
> store B into 'y';
> error reported:
> 2011-03-30 17:48:04,649 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1039: <file line.pig, line 2, column 25> (Name: Add Type: int Uid: 7)incompatible types in Add Operator left hand side:Unknown right hand side:Unknown
> Incorrect line number is also reported when a single line contains multiple Pig statement, such as:
> A = load 'x' as( u:int, v:chararray); B = foreach A generate u + v;
> store B into 'y';

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

[jira] [Commented] (PIG-1947) Incorrect line number is reported during parsing

Posted by "Xuefu Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13019952#comment-13019952 ] 

Xuefu Zhang commented on PIG-1947:
----------------------------------

Because currently a user script is parsed by at least two parsers (grunt parser and query parser), the line number is lost or incorrect reported due to a simplistic design. To fully address the problem, the following is required:

1. Grunt parser needs to be changed to passing more information to query parser about the source location of each line of the query. Right now, only a line number is passed alone.

2. Query parser needs a more sophisticated design to capture the source location of the script received from grunt parser. Currently, it caches the script lines in a list, which cannot fully recover the locations when query is subsequently parsed.

3. A clear semantic of line number is to be defined in interactive mode, especially in case of invalid query lines.


> Incorrect line number is reported during parsing
> ------------------------------------------------
>
>                 Key: PIG-1947
>                 URL: https://issues.apache.org/jira/browse/PIG-1947
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>             Fix For: 0.10
>
>         Attachments: PIG-1947-2.patch, PIG-1947.patch
>
>
> In case of errors in script, Pig parser doesn't report correct the line number always. For example:
> script:
> A = load 'x' as ( u:int, v:chararray );
> sh ls -l;
> B = foreach A generate u + v;
> store B into 'y';
> error reported:
> 2011-03-30 17:48:04,649 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1039: <file line.pig, line 2, column 25> (Name: Add Type: int Uid: 7)incompatible types in Add Operator left hand side:Unknown right hand side:Unknown
> Incorrect line number is also reported when a single line contains multiple Pig statement, such as:
> A = load 'x' as( u:int, v:chararray); B = foreach A generate u + v;
> store B into 'y';

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

[jira] [Updated] (PIG-1947) Incorrect line number is reported during parsing

Posted by "Olga Natkovich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Natkovich updated PIG-1947:
--------------------------------

    Fix Version/s:     (was: 0.10)
    
> Incorrect line number is reported during parsing
> ------------------------------------------------
>
>                 Key: PIG-1947
>                 URL: https://issues.apache.org/jira/browse/PIG-1947
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>         Attachments: PIG-1947-2.patch, PIG-1947.patch
>
>
> In case of errors in script, Pig parser doesn't report correct the line number always. For example:
> script:
> A = load 'x' as ( u:int, v:chararray );
> sh ls -l;
> B = foreach A generate u + v;
> store B into 'y';
> error reported:
> 2011-03-30 17:48:04,649 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1039: <file line.pig, line 2, column 25> (Name: Add Type: int Uid: 7)incompatible types in Add Operator left hand side:Unknown right hand side:Unknown
> Incorrect line number is also reported when a single line contains multiple Pig statement, such as:
> A = load 'x' as( u:int, v:chararray); B = foreach A generate u + v;
> store B into 'y';

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIG-1947) Incorrect line number is reported during parsing

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Natkovich updated PIG-1947:
--------------------------------

    Fix Version/s: 0.10

> Incorrect line number is reported during parsing
> ------------------------------------------------
>
>                 Key: PIG-1947
>                 URL: https://issues.apache.org/jira/browse/PIG-1947
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>             Fix For: 0.10
>
>         Attachments: PIG-1947-2.patch, PIG-1947.patch
>
>
> In case of errors in script, Pig parser doesn't report correct the line number always. For example:
> script:
> A = load 'x' as ( u:int, v:chararray );
> sh ls -l;
> B = foreach A generate u + v;
> store B into 'y';
> error reported:
> 2011-03-30 17:48:04,649 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1039: <file line.pig, line 2, column 25> (Name: Add Type: int Uid: 7)incompatible types in Add Operator left hand side:Unknown right hand side:Unknown
> Incorrect line number is also reported when a single line contains multiple Pig statement, such as:
> A = load 'x' as( u:int, v:chararray); B = foreach A generate u + v;
> store B into 'y';

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

[jira] [Updated] (PIG-1947) Incorrect line number is reported during parsing

Posted by "Xuefu Zhang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xuefu Zhang updated PIG-1947:
-----------------------------

    Fix Version/s:     (was: 0.9.0)

The issue is partly addressed in 0.9.0. However, fully addressing the issue requires significant work, which puts this case a good candidate to future releases.

> Incorrect line number is reported during parsing
> ------------------------------------------------
>
>                 Key: PIG-1947
>                 URL: https://issues.apache.org/jira/browse/PIG-1947
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>         Attachments: PIG-1947-2.patch, PIG-1947.patch
>
>
> In case of errors in script, Pig parser doesn't report correct the line number always. For example:
> script:
> A = load 'x' as ( u:int, v:chararray );
> sh ls -l;
> B = foreach A generate u + v;
> store B into 'y';
> error reported:
> 2011-03-30 17:48:04,649 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1039: <file line.pig, line 2, column 25> (Name: Add Type: int Uid: 7)incompatible types in Add Operator left hand side:Unknown right hand side:Unknown
> Incorrect line number is also reported when a single line contains multiple Pig statement, such as:
> A = load 'x' as( u:int, v:chararray); B = foreach A generate u + v;
> store B into 'y';

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