You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Pradeep Kamath (JIRA)" <ji...@apache.org> on 2010/08/05 04:45:16 UTC
[jira] Commented: (PIG-1534) Code discovering UDFs in the script
has a bug in a order by case
[ https://issues.apache.org/jira/browse/PIG-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12895522#action_12895522 ]
Pradeep Kamath commented on PIG-1534:
-------------------------------------
Ran all unit tests - TestScriptUDF fails but the failure is unrelated to the change in this patch and the failure occurs even with a fresh svn checkout.
Patch is ready for review.
> 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.