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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.12.1
    • Fix Version/s: 0.12.1, 0.13.0
    • Component/s: None
    • Labels:
      None
    • Tags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: