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

Relation loaded by AvroStorage with schema is projected incorrectly in foreach statement.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.1
    • 0.12.1, 0.13.0
    • None
    • None
    • AvroStorage

    Description

      This example has a correct behavior.

      in = LOAD '$INFILE' USING AvroStorage('','-f schema.avsc');
      out = FOREACH in GENERATE *;

      But if we try to pick and project specific fields like the following example,

      in = LOAD '$INFILE' USING AvroStorage('','-f schema.avsc');
      out = FOREACH in GENERATE $0,$1,$7;

      Actual result is "$0, $1, $2" not "$0,$1,$7"

      This bug is always reproducible.

      Attachments

        1. PIG-3833-2.patch
          2 kB
          Jeongjin Ku
        2. PIG-3833.patch
          5 kB
          Jeongjin Ku

        Activity

          People

            jeongjinku Jeongjin Ku
            jeongjinku Jeongjin Ku
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: