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

Pradeep Kamath commented on PIG-1534:
-------------------------------------

Thanks for the review Daniel, patch committed to trunk.

> Code discovering UDFs in the script has a bug in a order by case
> ----------------------------------------------------------------
>
>                 Key: PIG-1534
>                 URL: https://issues.apache.org/jira/browse/PIG-1534
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.7.0
>            Reporter: Pradeep Kamath
>            Assignee: Pradeep Kamath
>             Fix For: 0.8.0
>
>         Attachments: PIG-1534.patch
>
>
> Consider the following commandline:
> {noformat}
> java -cp /tmp/svncheckout/pig.jar:udf.jar:clusterdir org.apache.pig.Main -e 
> "a = load 'studenttab' using udf.MyPigStorage(); b = order a by $0; dump b;"
> {noformat}
> Notice there is no "register udf.jar", instead udf.jar (which contains 
> udf.MyPigStorage) is in the classpath. Pig handles this case by shipping 
> udf.jar to the backend. However the above script with order by triggers the 
> bug with the following error message:
>  ERROR 2997: Unable to recreate exception from backed error: 
> java.lang.RuntimeException: could not instantiate 
> 'org.apache.pig.impl.builtin.RandomSampleLoader' with arguments 
> '[udf.MyPigStorage, 100]'

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

Reply via email to