hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olga Natkovich (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-1112) FLATTEN eliminates the alias
Date Tue, 01 Dec 2009 19:23:20 GMT

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

Olga Natkovich updated PIG-1112:

    Fix Version/s:     (was: 0.6.0)

Moving out of 0.6.0 release. The right way to run this query is to specify the complete schema
for the bag. We are not sure how we should be dealing with partial schemas and need to figure
out the overall strategy before fixing individual issues.

> FLATTEN eliminates the alias
> ----------------------------
>                 Key: PIG-1112
>                 URL: https://issues.apache.org/jira/browse/PIG-1112
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Ankur
>            Assignee: Daniel Dai
> If schema for a field of type 'bag' is partially defined then FLATTEN() incorrectly eliminates
the field and throws an error. 
> Consider the following example:-
> A = LOAD 'sample' using PigStorage() as (first:chararray, second:chararray, ladder:bag{});
> B = FOREACH A GENERATE first,FLATTEN(ladder) as third,second;                       
> C = GROUP B by (first,third);
> This throws the error
>  ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Invalid alias:
third in {first: chararray,second: chararray}

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

View raw message