pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dai (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-972) Make describe work with nested foreach
Date Fri, 04 Jun 2010 01:25:55 GMT

    [ https://issues.apache.org/jira/browse/PIG-972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875410#action_12875410

Daniel Dai commented on PIG-972:

If we have a statement:
a = load '1.txt' as (a0:int, a1:int);
b = group a by a0;
c = foreach b { d = order a by $0; generate d, *; }

Here is proposal 2.b from Aniket:
grunt> describe c:
c::d: {a0: int,a1: int}
c: {d: {a0: int,a1: int},group: int,a: {a0: int,a1: int}}
grunt> describe c::d;
c::d: {a0: int,a1: int}

I vote for this approach. Opinion?

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