[ 
https://issues.apache.org/jira/browse/PIG-2949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eyal Allweil updated PIG-2949:
------------------------------
    Attachment: PIG-2949.patch

This is a patch + unit test that is a modification of David's original patch. 
It will allow loading any array of primitives (any field other than bag, map or 
tuple) without repeating the object name, as this issue describes.

For example [ 1,2,3 ] or [ "ab", "cd", "ef"]

> 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
>            Assignee: Eyal Allweil
>            Priority: Minor
>         Attachments: JsonLoader.java, PIG-2949.patch
>
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to