Pig
  1. Pig
  2. PIG-2949

JsonLoader only reads arrays of objects

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.15.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      os x mountain lion

    • Patch Info:
      Patch Available
    • Hadoop Flags:
      Reviewed

      Description

      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

      1. PIG-2949.patch
        10 kB
        Eyal Allweil
      2. JsonLoader.java
        13 kB
        David LaBarbera

        Activity

        Daniel Dai made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Fix Version/s 0.15.0 [ 12328760 ]
        Resolution Fixed [ 1 ]
        Eyal Allweil made changes -
        Patch Info Patch Available [ 10042 ]
        Eyal Allweil made changes -
        Attachment PIG-2949.patch [ 12684077 ]
        Eyal Allweil made changes -
        Assignee Eyal Allweil [ eyal ]
        David LaBarbera made changes -
        Field Original Value New Value
        Attachment JsonLoader.java [ 12548028 ]
        David LaBarbera created issue -

          People

          • Assignee:
            Eyal Allweil
            Reporter:
            David LaBarbera
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development