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-972) Make describe work with nested foreach
Date Fri, 20 Aug 2010 22:08:17 GMT

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

Olga Natkovich updated PIG-972:

    Release Note: 
In the earlier version of Pig, describe could only be applied to outer relations. With Pig
0.8.0, describe could also be applied to the relations defined in nested foreach. 


grunt> A = load 'studentab10k' as (name, age, gpa);
grunt> B = group A by name;
grunt> C = foreach B {
>> D = distinct A.age;
>> generate COUNT(D), group;}
grunt> describe C::D;
D: {age: bytearray}

Note that you access the inner relation via the outer one using :: operator.

> Make describe work with nested foreach
> --------------------------------------
>                 Key: PIG-972
>                 URL: https://issues.apache.org/jira/browse/PIG-972
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Olga Natkovich
>            Assignee: Aniket Mokashi
>             Fix For: 0.8.0
>         Attachments: NestedDescribeFinale.patch, NestedDescribeFinale1.patch, NestedDescribeProp1.patch,
> Currently Parser can't deal with that. This is because describe is part of Grunt parser
while the rest of nested foreach is handled by the QueryParser

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

View raw message