[
https://issues.apache.org/jira/browse/PIG-3090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13559134#comment-13559134
]
Daniel Dai commented on PIG-3090:
---------------------------------
I do prefer a simplified syntax. My only concern is the relation name left to
the equal sign is not used in most cases, which make the scriptlet look ugly.
How about get rid of them as well? My preferred syntax is similar to the below:
{code}
load 'thing' as (x:int);
=> foreach @ generate x;
=> foreach @ generate x;
=> foreach @ generate x;
=> d
{code}
> 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