[ https://issues.apache.org/jira/browse/PIG-1194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12805758#action_12805758 ]
Ashutosh Chauhan commented on PIG-1194: --------------------------------------- This is related to PIG-1188 . In the patch missing column is assumed to be null. That is if number of elements in tuple in data dont match with schema provided, tuple is padded with null. I am not sure if this is the semantics that we want to have for situation where data doesnt match with the schema provided. As discussed in PIG-1188 other alternatives could be to drop such tuples altogether or to assume nulls in all the fields of tuple. I think we need to agree on semantics before we go ahead with this patch. > ERROR 2055: Received Error while processing the map plan > -------------------------------------------------------- > > Key: PIG-1194 > URL: https://issues.apache.org/jira/browse/PIG-1194 > Project: Pig > Issue Type: Bug > Components: impl > Affects Versions: 0.5.0, 0.6.0 > Reporter: Viraj Bhat > Assignee: Richard Ding > Fix For: 0.7.0 > > Attachments: inputdata.txt, PIG-1194.patch, PIG-1194.patch > > > I have a simple Pig script which takes 3 columns out of which one is null. > {code} > input = load 'inputdata.txt' using PigStorage() as (col1, col2, col3); > a = GROUP input BY (((double) col3)/((double) col2) > .001 OR col1 < 11 ? > col1 : -1); > b = FOREACH a GENERATE group as col1, SUM(input.col2) as col2, > SUM(input.col3) as col3; > store b into 'finalresult'; > {code} > When I run this script I get the following error: > ERROR 2055: Received Error while processing the map plan. > org.apache.pig.backend.executionengine.ExecException: ERROR 2055: Received > Error while processing the map plan. > at > org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapBase.runPipeline(PigMapBase.java:277) > at > org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapBase.map(PigMapBase.java:240) > at > org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapReduce$Map.map(PigMapReduce.java:93) > at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50) > at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:358) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:307) > ================================================================================ > A more useful error message for the purpose of debugging would be helpful. > Viraj -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.