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

JsonLoader/JsonStorage does not work with boolean

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 0.10.0
    • Fix Version/s: None
    • Component/s: impl
    • Labels:
      None

      Description

      The following script fail:

      A = LOAD 'allscalar10k.json' using JsonLoader();
      store B into 'output';
      

      Exception:
      java.io.IOException: Unknown type in input schema: 5
      at org.apache.pig.builtin.JsonLoader.readField(JsonLoader.java:292)
      at org.apache.pig.builtin.JsonLoader.getNext(JsonLoader.java:157)
      at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigRecordReader.nextKeyValue(PigRecordReader.java:187)
      at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.nextKeyValue(MapTask.java:532)
      at org.apache.hadoop.mapreduce.MapContext.nextKeyValue(MapContext.java:67)
      at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:143)
      at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:764)
      at org.apache.hadoop.mapred.MapTask.run(MapTask.java:370)
      at org.apache.hadoop.mapred.Child$4.run(Child.java:255)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:396)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1083)
      at org.apache.hadoop.mapred.Child.main(Child.java:249)

        Attachments

        1. PIG-2594-2.patch
          8 kB
          Paul Groudas
        2. PIG-2594.patch
          7 kB
          Paul Groudas
        3. PIG-2594.patch
          8 kB
          Paul Groudas

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                daijy Jianyong Dai
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: