[ https://issues.apache.org/jira/browse/PIG-2904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450454#comment-13450454 ]
Cheolsoo Park commented on PIG-2904: ------------------------------------ Hello Julien, I have a question about this jira. I've been reading Pig UDF code to understand why I need different DEFINEs in order to pass different constructor parameters to the AvroStorage constructor. What I found is that aliases are mapped with FuncSpec instances that store not only function names but also args specified in DEFINE statements. Later when aliases are expanded by LogicalPlanBuilder, function objects are instantiated from those FuncSpec instances, resulting that args specified in DEFINE statements are used to instantiate function objects instead of ones specified in LOAD statements. My question is whether this jira is to solve the same problem or not. I am a bit confused because the title says "scripting UDFs", but I thought that scripting UDFs are EvalFuncs, and EvalFuncs take no parameters in their constructors. Please forgive me if I am misunderstanding something here. I am still learning Pig internal. Thanks! > Scripting UDFs should allow DEFINE statements to pass parameters to the UDF's > constructor > ----------------------------------------------------------------------------------------- > > Key: PIG-2904 > URL: https://issues.apache.org/jira/browse/PIG-2904 > Project: Pig > Issue Type: New Feature > Reporter: Julien Le Dem > -- 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