hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Gates (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-592) schema inferred incorrectly
Date Fri, 18 Sep 2009 18:06:16 GMT

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

Alan Gates commented on PIG-592:
--------------------------------

+1, patch looks good.  Let's get this in, as it's an annoying bug.

> schema inferred incorrectly
> ---------------------------
>
>                 Key: PIG-592
>                 URL: https://issues.apache.org/jira/browse/PIG-592
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Christopher Olston
>             Fix For: 0.5.0
>
>         Attachments: PIG-592-1.patch
>
>
> A simple pig script, that never introduces any schema information:
> A = load 'foo';
> B = foreach (group A by $8) generate group, COUNT($1);
> C = load 'bar';       // ('bar' has two columns)
> D = join B by $0, C by $0;
> E = foreach D generate $0, $1, $3;
> Fails, complaining that $3 does not exist:
> java.io.IOException: Out of bound access. Trying to access non-existent column: 3. Schema
{B::group: bytearray,long,bytearray} has 3 column(s).
> Apparently Pig gets confused, and thinks it knows the schema for C (a single bytearray
column).

-- 
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