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

        

Reply via email to