You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Olga Natkovich (JIRA)" <ji...@apache.org> on 2010/08/21 00:08:17 UTC
[jira] Updated: (PIG-972) Make describe work with nested foreach
[ 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.
Example:
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, NestedDescribeProp2Initial.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.