You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Jonathan Coveney (JIRA)" <ji...@apache.org> on 2013/01/25 03:17:13 UTC
[jira] [Updated] (PIG-3136) Introduce a syntax making declared
aliases optional
[ https://issues.apache.org/jira/browse/PIG-3136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Coveney updated PIG-3136:
----------------------------------
Attachment: PIG-3136-0.patch
This is my implementation. Not terribly complicated, and now you can use the following syntax:
{code}
=> load 'thing';
=> foreach (group @ all) generate COUNT_STAR($1);
dump @;
{code}
Pretty neat imho.
> Introduce a syntax making declared aliases optional
> ---------------------------------------------------
>
> Key: PIG-3136
> URL: https://issues.apache.org/jira/browse/PIG-3136
> Project: Pig
> Issue Type: Improvement
> Reporter: Jonathan Coveney
> Assignee: Jonathan Coveney
> Fix For: 0.12
>
> Attachments: PIG-3136-0.patch
>
>
> This is something Daniel and I have talked about before, and now that we have the @ syntax, this is easy to implement. The idea is that relation names are no longer required, and you can instead use a fat arrow (obviously that can be changed) to signify this. The benefit is not having to engage in the mental load of having to name everything.
> One other possibility is just making "alias =" optional. I fear that that could be a little TOO magical, but I welcome opinions.
--
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