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

Handle realiasing of existing Alias (A=B;)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.2.0
    • Fix Version/s: 0.10.0, 0.11
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      We do not handle re-aliasing of an existing alias - this should be handled correctly.

      The following script should work:

      a = load 'studenttab10k';
      b = filter a by $1 > '25';
      c = b;
      
      -- use b
      d = cogroup b by $0, a by $0;
      e = foreach d generate flatten(b), flatten(a);
      dump e
      
      -- use c
      f = cogroup c by $0, a by $0;
      g = foreach f generate flatten(c), flatten(a);
      dump g;
      
      

        Attachments

        1. PIG-438-2.patch
          7 kB
          Daniel Dai
        2. PIG-438.patch
          0.8 kB
          Jonathan Coveney

          Activity

            People

            • Assignee:
              jcoveney Jonathan Coveney
              Reporter:
              pkamath Pradeep Kamath
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: