[
https://issues.apache.org/jira/browse/PIG-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pradeep Kamath updated PIG-1534:
--------------------------------
Attachment: PIG-1534.patch
Patch fixes SampleOptimizer to add the loadFunc funcspecs into the Mapreduce operators after optimization - this fixes the above order by error.
Here are results from running the test-patch target locally
[exec] -1 overall.
[exec]
[exec] +1 @author. The patch does not contain any @author tags.
[exec]
[exec] +1 tests included. The patch appears to include 3 new or modified tests.
[exec]
[exec] -1 javadoc. The javadoc tool appears to have generated 1 warning messages.
[exec]
[exec] +1 javac. The applied patch does not increase the total number of javac compiler warnings.
[exec]
[exec] +1 findbugs. The patch does not introduce any new Findbugs warnings.
[exec]
[exec] +1 release audit. The applied patch does not increase the total number of release audit warnings.
[exec]
The javadoc warning is present on trunk and not related to this patch:
{noformat}
...
[javadoc] Standard Doclet version 1.6.0_01
[javadoc] Building tree for all the packages and classes...
[javadoc] /tmp/svncheckout/src/org/apache/pig/newplan/logical/expression/ProjectExpression.java:192: warning - @param argument "currentOp" is not a parameter name.
[javadoc] Building index for all the packages and classes...
...
{noformat}
Will run unit tests locally and update with results.
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-1534Project: Pig
Issue Type: Bug
Affects Versions: 0.7.0
Reporter: 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.