Query with a cogroup have one of its inputs coming from a group fails
---------------------------------------------------------------------
Key: PIG-508
URL: https://issues.apache.org/jira/browse/PIG-508
Project: Pig
Issue Type: Bug
Affects Versions: types_branch
Reporter: Pradeep Kamath
Assignee: Pradeep Kamath
Fix For: types_branch
Script which fails:
{code}
a = load '/user/pig/tests/data/singlefile/studenttab10k';
b = group a by $0;
c = load '/user/pig/tests/data/singlefile/studenttab10k';
d = cogroup b by $0, c by $0;
e = foreach d generate group, c.$1, SUM(c.$1), COUNT(c);
dump e;
{code}
Error message produced:
{noformat}
08/10/23 15:23:54 ERROR mapReduceLayer.MapReduceLauncher: Job failed!
08/10/23 15:23:54 ERROR mapReduceLayer.Launcher: Error message from task
(reduce) task_200810231521_0007_r_000000java.lang.NullPointerException
at
org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POPackage.getNext(POPackage.java:218)
at
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapReduce$Reduce.reduce(PigMapReduce.java:208)
at
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapReduce$Reduce.reduce(PigMapReduce.java:134)
at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:318)
at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2207)
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.