You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Alan Gates (JIRA)" <ji...@apache.org> on 2008/09/11 17:13:46 UTC

[jira] Assigned: (PIG-414) explicit split causes name to be dropped from describe

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

Alan Gates reassigned PIG-414:
------------------------------

    Assignee: Santhosh Srinivasan

This affects more than just describe.  If you have a query like:

{code}
a = load 'infile';
split a into a1 if $0 > 'm', a2 if $0 <= 'm';
b = cogroup a1 by $1, a2 by $1;
c = foreach b generate flatten(a1), flatten(a2);
store c into 'outfile';
{code}

it will fail saying that a1 and a2 are not valid aliases in b at the foreach line.


> explicit split causes name to be dropped from describe
> ------------------------------------------------------
>
>                 Key: PIG-414
>                 URL: https://issues.apache.org/jira/browse/PIG-414
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Olga Natkovich
>            Assignee: Santhosh Srinivasan
>            Priority: Minor
>             Fix For: types_branch
>
>
> A = load 'studenttab10k' as (name: chararray, age: int, gpa: float);
> B = load 'studenttab10k' as (name: chararray, age: int, gpa: float);
> split A into A1 if name eq 'foo', A2 if name eq 'bar';
> C = cogroup A1 by name, B by name;
> describe C;
> C: {group: chararray,{name: chararray,age: integer,gpa: float},B: {name: chararray,age: integer,gpa: float}}
> Note that name of A1 is missing from dewcribe

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