Russell Jurney created PIG-2962:
-----------------------------------

             Summary: Make importing UDFs one line via macros
                 Key: PIG-2962
                 URL: https://issues.apache.org/jira/browse/PIG-2962
             Project: Pig
          Issue Type: Improvement
    Affects Versions: 0.11
            Reporter: Russell Jurney
            Assignee: Daniel Dai
            Priority: Minor


Example. This is how you use the AvroStorage UDF in Piggybank:

register /me/pig/contrib/piggybank/java/piggybank.jar
register /me/pig/build/ivy/lib/Pig/avro-1.5.3.jar
register /me/pig/build/ivy/lib/Pig/json-simple-1.1.jar
define AvroStorage org.apache.pig.piggybank.storage.avro.AvroStorage();
emails = load '/enron/emails.avro' using AvroStorage();

That is 5 lines. This should be 2 lines:

import 'avro.macro'
emails = load '/enron/emails.avro' using AvroStorage();


--
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

Reply via email to