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

Olga Natkovich commented on PIG-1796:
-------------------------------------

The current description has most of the information. What is missing is that 
expressions are also supported in the nested block. I suggest with re-write it 
the following way:

FOREACH...GENERATE used with a inner bag. Use this syntax:
alias = FOREACH nested_alias {
   alias = {nested_op | nested_exp}; [{alias = {nested_op | nested_exp}; …]
   GENERATE expression [AS schema] [expression [AS schema]….]
};
Nested_exp – arbitrary supported expression

I believe that example already covers the expression case. 

One more thing that we need to mention is that macros are not allowed inside of 
nested foreach


> need to document what is supported in nested foreach
> ----------------------------------------------------
>
>                 Key: PIG-1796
>                 URL: https://issues.apache.org/jira/browse/PIG-1796
>             Project: Pig
>          Issue Type: Improvement
>          Components: documentation
>            Reporter: Olga Natkovich
>            Assignee: Olga Natkovich
>             Fix For: 0.9.0
>
>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to