[
https://issues.apache.org/jira/browse/PIG-1964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13016070#comment-13016070
]
Thejas M Nair commented on PIG-1964:
------------------------------------
This bug is related to the change in PIG-1830.
{code}
grunt> cat students2.pigstore
datestamp vtestid total
{"fields":[{"name":"datestamp","type":55,"description":"autogenerated from Pig
Field
Schema","schema":null},{"name":"vtestid","type":55,"description":"autogenerated
from Pig Field
Schema","schema":null},{"name":"total","type":15,"description":"autogenerated
from Pig Field
Schema","schema":null}],"version":0,"sortKeys":[],"sortKeyOrders":[]}alice F
1
bob M 2
carol F 3
doug 1
ivan M 3
jill F 1
grunt>
grunt> l = load 'students2.pigstore' using
org.apache.pig.piggybank.storage.PigStorageSchema();
grunt> dump l;
...
...
java.lang.NullPointerException
at
org.apache.pig.piggybank.storage.PigStorageSchema.getNext(PigStorageSchema.java:95)
at
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigRecordReader.nextKeyValue(PigRecordReader.java:187)
at
org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.nextKeyValue(MapTask.java:423)
at
org.apache.hadoop.mapreduce.MapContext.nextKeyValue(MapContext.java:67)
at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:621)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:305)
at
org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:177)
{code}
> PigStorageSchema fails if a column value is null
> ------------------------------------------------
>
> Key: PIG-1964
> URL: https://issues.apache.org/jira/browse/PIG-1964
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.8.0, 0.9.0
> Reporter: Thejas M Nair
> Assignee: Thejas M Nair
> Fix For: 0.8.0, 0.9.0
>
>
> If the data being loaded by PigStorageSchema has a column with null value,
> the pig query fails with a NullPointerException.
> The issue is currently seen in 0.8 branch in svn, not in the 0.8 apache
> release.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira