[ https://issues.apache.org/jira/browse/PIG-525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olga Natkovich updated PIG-525: ------------------------------- Status: Resolved (was: Patch Available) Fix Version/s: 0.6.0 Resolution: Fixed I checked that the code was committed - we just forgot to close it > UDF that requires a cast for its input arguments causes an exception > -------------------------------------------------------------------- > > Key: PIG-525 > URL: https://issues.apache.org/jira/browse/PIG-525 > Project: Pig > Issue Type: Bug > Reporter: Olga Natkovich > Assignee: Olga Natkovich > Fix For: 0.6.0 > > Attachments: PIG-525.patch > > > Script: > register /homes/olgan/piggybank.jar > A = load 'studenttab10k' as (name, age, gpa); > B = filter A by name is not null; > C = foreach A generate org.apache.pig.piggybank.evaluation.string.UPPER(name); > D = limit C 10; > dump D; > Stack: > (reduce) task_200809241441_20466_r_000000java.io.IOException: Received a > bytearray from the UDF. Cannot determine how to convert the bytearray to > string. > at > org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapReduce$Reduce.processOnePackageOutput(PigMapReduce.java:266) > at > org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapReduce$Reduce.reduce(PigMapReduce.java:224) > at > org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapReduce$Reduce.reduce(PigMapReduce.java:136) > at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:318) > at > org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2207) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.