You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "David LaBarbera (JIRA)" <ji...@apache.org> on 2012/10/05 21:20:02 UTC

[jira] [Commented] (PIG-2949) JsonLoader only reads arrays of objects

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

David LaBarbera commented on PIG-2949:
--------------------------------------

the schema i tested with was something like 
words:{(word:chararray)}
                
> JsonLoader only reads arrays of objects 
> ----------------------------------------
>
>                 Key: PIG-2949
>                 URL: https://issues.apache.org/jira/browse/PIG-2949
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.10.0
>         Environment: os x mountain lion
>            Reporter: David LaBarbera
>            Priority: Minor
>         Attachments: JsonLoader.java
>
>
> I'm trying to load a vendor file that's json ecoded into pig. One of the fields is an array of strings. The builtin JsonLoader only reads arrays composed of json objects
> {"object_array}:[{"element":"value1"},{"element":"value2"}]} works
> but
> {"string_array"}:["value1","value2"] does not

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira