[
https://issues.apache.org/jira/browse/PIG-276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pradeep Kamath updated PIG-276:
-------------------------------
Due to patch PIG-269's latest commit, there will be compilation errors relating
to the following code in src/org/apache/pig/impl/PigContext.java *after*
applying the patch supplied for this issue.
{code}
public static Object instantiateFuncFromSpec(FuncSpec funcSpec) {
...
catch(NoSuchMethodException nme) {
// Second channce. Try with var arg constructor
try {
Constructor c = objClass.getConstructor(String[].class);
String[] argArr = args.toArray(new String[0]) ;
Object[] wrappedArgs = new Object[1] ;
wrappedArgs[0] = argArr ;
ret = c.newInstance(wrappedArgs);
}
...
{code}
This will need to be changed to :
{code}
public static Object instantiateFuncFromSpec(FuncSpec funcSpec) {
...
}
catch(NoSuchMethodException nme) {
// Second channce. Try with var arg constructor
try {
Constructor c = objClass.getConstructor(String[].class);
Object[] wrappedArgs = new Object[1] ;
wrappedArgs[0] = args ;
ret = c.newInstance(wrappedArgs);
}
...
{code}
> Allow UDFs to have different implementations based on input types
> -----------------------------------------------------------------
>
> Key: PIG-276
> URL: https://issues.apache.org/jira/browse/PIG-276
> Project: Pig
> Issue Type: Sub-task
> Reporter: Alan Gates
> Assignee: Pradeep Kamath
> Attachments: EvalFunc.patch, EvalFunc_Combined.patch,
> EvalFunc_unittestcases.patch, udf_funcspec_src.patch, udf_funcspec_tests.patch
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.