[
https://issues.apache.org/jira/browse/PIG-3090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13559851#comment-13559851
]
Jonathan Coveney commented on PIG-3090:
---------------------------------------
Daniel,
I think that that is a good idea, but should be a separate patch. It would not
be hard to create a syntax which implicitly uses some reserved pig-only alias
(____reserved or something), which => would implicitly become. If you make the
ticket and assign it to me I will work on it. That said, I think this patch can
and should be evaluated separately.
Cheolsoo,
I think that's a matter for documentation. Or do you think we should do
something special with the @ inside of a nested foreach?
> Introduce a syntax to be able to easily refer to the previously defined
> relation
> --------------------------------------------------------------------------------
>
> Key: PIG-3090
> URL: https://issues.apache.org/jira/browse/PIG-3090
> Project: Pig
> Issue Type: New Feature
> Reporter: Jonathan Coveney
> Assignee: Jonathan Coveney
> Fix For: 0.12
>
> Attachments: PIG-3090-0.patch, PIG-3090-1.patch
>
>
> Sometimes I feel like swimming with ANTLRs. This particular feature isn't too
> hard to add... and supports syntax like this:
> {code}
> a = load 'thing' as (x:int);
> b = foreach @ generate x;
> c = foreach @ generate x;
> d = foreach @ generate x;
> {code}
> I have a patch, though I need to make sure it doesn't change anything (it
> shouldn't) and I need to add tests.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira