[ https://issues.apache.org/jira/browse/PIG-2962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472182#comment-13472182 ]
Jonathan Coveney commented on PIG-2962: --------------------------------------- Err, I meant "can't you currently register" and now that I think of it I don't think you can either. Doesn't pig have an "include" that just straight up includes the file? > 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