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

Handle realiasing of existing Alias (A=B;)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.2.0
    • 0.10.0, 0.11
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: