Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-2949

JsonLoader only reads arrays of objects

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: