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

I should not specify the schema for JsonLoader

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.12.0
    • None
    • None
    • None

    Description

      I should be able to import JSON data without specify the schema

      raw = LOAD 'testjson' USING JsonLoader() as (json:map[]);

      and call every fields as :

      data = foreach raw generate (chararray)$0#'field1' as text,(long)$0#'field2' as id; ...

      Attachments

        Activity

          People

            Unassigned Unassigned
            joao João Jandre Paraquetti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: