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

Aniket Mokashi commented on PIG-972:
------------------------------------

describe c and describe c::d seems more intuitive. 
Further changes-
1. Currently, we are not using a deterministic way to search for nested alias 
in internal plans. 
With changes, we will dump the schema of latest statement for d.
For example, if we have,
{code}
c = foreach b { d = order a by $0; d = filter d by d.$0 > 0; generate d.$1;}
describe c::d;
{code}
This will dump the schema for last statement associated with d (filter). This 
will be achieved by traversing the plan from leaves to root while searching for 
nested alias d.
2. nested alias list is redundant and will be removed.



> 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, 
> 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.

Reply via email to