Problem when schema contains more columns that actual data
----------------------------------------------------------
Key: PIG-446
URL: https://issues.apache.org/jira/browse/PIG-446
Project: Pig
Issue Type: Bug
Reporter: Olga Natkovich
Assignee: Alan Gates
Script:
-- extra1 and extra2 are not present in the data
A = load 'data' as (name, age: int, gpa, extra1, extra2);
B = limit A 10;
dump B;
Error:
Out of bounds access: Request for field number 3 exceeds tuple size of 3
at
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapReduce$Reduce.reduce(PigMapReduce.java:223)
at
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapReduce$Reduce.reduce(PigMapReduce.java:121)
at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:391)
at
org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2124)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.