hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Gates (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-61) User comparator does not work if the comapre function is not in pig.jar
Date Mon, 14 Jan 2008 23:47:33 GMT

     [ https://issues.apache.org/jira/browse/PIG-61?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alan Gates updated PIG-61:
--------------------------

    Attachment: pig61.patch

Patch to address this issue.  I tested this with a comparison function in a jar other than
pig.jar and it worked fine.

> 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
>         Attachments: pig61.patch
>
>
> 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.


Mime
View raw message