You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Benjamin Reed (JIRA)" <ji...@apache.org> on 2007/12/18 00:22:42 UTC

[jira] Created: (PIG-53) Parser should detect tuple field number problems when possible

Parser should detect tuple field number problems when possible
--------------------------------------------------------------

                 Key: PIG-53
                 URL: https://issues.apache.org/jira/browse/PIG-53
             Project: Pig
          Issue Type: Improvement
          Components: impl
            Reporter: Benjamin Reed


In the following:

A = load 'foo';
B = foreach A generate $1, $2;
C = foreach B generate $2;

The parse should be able to detect that the last line is referencing a non-existant field. It cannot do the check for the 2nd line since it doesn't know the number of fields of the tuples of A, but it can for the last line since it know that tuples of B have 2 fields.

It is much easier to figure out what is going on when the error is detected at parse time rather than runtime.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (PIG-53) Parser should detect tuple field number problems when possible

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

Olga Natkovich reassigned PIG-53:
---------------------------------

    Assignee: Alan Gates

This can be fixed as part of type rework


> Parser should detect tuple field number problems when possible
> --------------------------------------------------------------
>
>                 Key: PIG-53
>                 URL: https://issues.apache.org/jira/browse/PIG-53
>             Project: Pig
>          Issue Type: Improvement
>          Components: impl
>            Reporter: Benjamin Reed
>            Assignee: Alan Gates
>
> In the following:
> A = load 'foo';
> B = foreach A generate $1, $2;
> C = foreach B generate $2;
> The parse should be able to detect that the last line is referencing a non-existant field. It cannot do the check for the 2nd line since it doesn't know the number of fields of the tuples of A, but it can for the last line since it know that tuples of B have 2 fields.
> It is much easier to figure out what is going on when the error is detected at parse time rather than runtime.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIG-53) Parser should detect tuple field number problems when possible

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

Amir Youssefi updated PIG-53:
-----------------------------

    Issue Type: Sub-task  (was: Improvement)
        Parent: PIG-142

> Parser should detect tuple field number problems when possible
> --------------------------------------------------------------
>
>                 Key: PIG-53
>                 URL: https://issues.apache.org/jira/browse/PIG-53
>             Project: Pig
>          Issue Type: Sub-task
>          Components: impl
>            Reporter: Benjamin Reed
>            Assignee: Alan Gates
>
> In the following:
> A = load 'foo';
> B = foreach A generate $1, $2;
> C = foreach B generate $2;
> The parse should be able to detect that the last line is referencing a non-existant field. It cannot do the check for the 2nd line since it doesn't know the number of fields of the tuples of A, but it can for the last line since it know that tuples of B have 2 fields.
> It is much easier to figure out what is going on when the error is detected at parse time rather than runtime.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.