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 (Commented) (JIRA)" <ji...@apache.org> on 2012/01/13 07:15:39 UTC
[jira] [Commented] (PIG-2469) Support %define and %default in
macros
[ https://issues.apache.org/jira/browse/PIG-2469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185452#comment-13185452 ]
Jonathan Coveney commented on PIG-2469:
---------------------------------------
A little out of scope for this ticket, but I think macros should also support the shell/hdfs utilities.
> Support %define and %default in macros
> --------------------------------------
>
> Key: PIG-2469
> URL: https://issues.apache.org/jira/browse/PIG-2469
> Project: Pig
> Issue Type: Improvement
> Components: parser
> Affects Versions: 0.9.0
> Reporter: Bill Graham
>
> Make macros support {{%define}} and {{%default}} commands. For example, this should work:
> {noformat}
> $ cat sample.macro
> %default date '20120101'
> $ cat sample.pig
> import 'sample.macro';
> A = LOAD '/some/path/$date';
> dump A;
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira