Pig
  1. Pig
  2. PIG-438

Handle realiasing of existing Alias (A=B;)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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;
      
      
      1. PIG-438-2.patch
        7 kB
        Daniel Dai
      2. PIG-438.patch
        0.8 kB
        Jonathan Coveney

        Activity

        Pradeep Kamath created issue -
        Nigel Daley made changes -
        Field Original Value New Value
        Fix Version/s 1.0.0 [ 12313288 ]
        Nigel Daley made changes -
        Affects Version/s 0.2.0 [ 12313783 ]
        Affects Version/s 1.0.0 [ 12313288 ]
        Alan Gates made changes -
        Assignee Alan Gates [ alangates ]
        Fix Version/s 0.9.0 [ 12315191 ]
        Priority Major [ 3 ] Minor [ 4 ]
        Alan Gates made changes -
        Assignee Alan Gates [ alangates ] Xuefu Zhang [ xuefuz ]
        Olga Natkovich made changes -
        Fix Version/s 0.10 [ 12316246 ]
        Olga Natkovich made changes -
        Fix Version/s 0.9.0 [ 12315191 ]
        Olga Natkovich made changes -
        Fix Version/s 0.10 [ 12316246 ]
        Viraj Bhat made changes -
        Assignee Xuefu Zhang [ xuefuz ]
        Jonathan Coveney made changes -
        Attachment PIG-438.patch [ 12514143 ]
        Jonathan Coveney made changes -
        Assignee Jonathan Coveney [ jcoveney ]
        Jonathan Coveney made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Fix Version/s 0.11 [ 12318878 ]
        Daniel Dai made changes -
        Attachment PIG-438-2.patch [ 12518213 ]
        Daniel Dai made changes -
        Fix Version/s 0.10 [ 12316246 ]
        Daniel Dai made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Resolution Fixed [ 1 ]
        Daniel Dai made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development