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

JsonLoader only reads arrays of objects

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.10.0
    • 0.15.0
    • None
    • None
    • os x mountain lion

    • Patch Available
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment