You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Sam Pullara (JIRA)" <ji...@apache.org> on 2008/01/12 04:57:33 UTC

[jira] Commented: (PIG-61) User comparator does not work if the comapre function is not in pig.jar

    [ https://issues.apache.org/jira/browse/PIG-61?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558195#action_12558195 ] 

Sam Pullara commented on PIG-61:
--------------------------------

Yeah, I ran into this when I was testing my patch -- you need to change Class.forName to PigContext.instantiateFuncFromSpec.

> User comparator does not work if the comapre function is not in pig.jar
> -----------------------------------------------------------------------
>
>                 Key: PIG-61
>                 URL: https://issues.apache.org/jira/browse/PIG-61
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Olga Natkovich
>            Assignee: Alan Gates
>
> From what I can tell, comparison function lookup does not interact with register command. Instead, it expects to find the function on the class path. The problem with that is that we don't ship jar that are not registered and the registered jars don't get placed in classpath on the server path. The solution should be to use the same way to instanciate the object as used for other udfs.
> Comparator: Class.forName
> Other UDFs: PigContext.resolveClassName

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.