pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dai (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-1737) New logical plan: Improve error messages when merge schema fail
Date Fri, 19 Nov 2010 20:29:16 GMT

     [ https://issues.apache.org/jira/browse/PIG-1737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Dai updated PIG-1737:
----------------------------

    Attachment: PIG-1737-2.patch

Changed the patch as per Thejas's suggestion.

> New logical plan: Improve error messages when merge schema fail
> ---------------------------------------------------------------
>
>                 Key: PIG-1737
>                 URL: https://issues.apache.org/jira/browse/PIG-1737
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.8.0
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>             Fix For: 0.8.0
>
>         Attachments: PIG-1737-1.patch, PIG-1737-2.patch
>
>
> Pig fail when foreach schema does not match user defined schema with the NPE. The error
message should be enhanced. Eg:
> {code}
> a = load '1.txt' as (a0, a1, a2);
> b = group a by (a0, a1);
> c = foreach b generate flatten(group) as c0;
> dump c;
> {code}
> flatten(group) contains 2 items, user cannot name it into c0 alone. However, Pig die
with NPE, which is clueless to the user.

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


Mime
View raw message