You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Rohini Palaniswamy (JIRA)" <ji...@apache.org> on 2013/12/05 01:54:41 UTC

[jira] [Commented] (PIG-2594) JsonLoader/JsonStorage does not work with boolean

    [ https://issues.apache.org/jira/browse/PIG-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13839557#comment-13839557 ] 

Rohini Palaniswamy commented on PIG-2594:
-----------------------------------------

[~pgroudas],
      This patch has become outdated. Can you rebase and resubmit your patch? Please ensure that you click on "Submit Patch" next time after uploading a patch, as it puts it in the Patch Available list and ensures that someone takes a look and gets it committed.

> JsonLoader/JsonStorage does not work with boolean
> -------------------------------------------------
>
>                 Key: PIG-2594
>                 URL: https://issues.apache.org/jira/browse/PIG-2594
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.10.0
>            Reporter: Daniel Dai
>         Attachments: PIG-2594-2.patch, PIG-2594.patch, PIG-2594.patch
>
>
> The following script fail:
> {code}
> A = LOAD 'allscalar10k.json' using JsonLoader();
> store B into 'output';
> {code}
> Exception:
> java.io.IOException: Unknown type in input schema: 5
> 	at org.apache.pig.builtin.JsonLoader.readField(JsonLoader.java:292)
> 	at org.apache.pig.builtin.JsonLoader.getNext(JsonLoader.java:157)
> 	at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigRecordReader.nextKeyValue(PigRecordReader.java:187)
> 	at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.nextKeyValue(MapTask.java:532)
> 	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:764)
> 	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:370)
> 	at org.apache.hadoop.mapred.Child$4.run(Child.java:255)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAs(Subject.java:396)
> 	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1083)
> 	at org.apache.hadoop.mapred.Child.main(Child.java:249)



--
This message was sent by Atlassian JIRA
(v6.1#6144)