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

Wrong Schema generated when there is a dangling alias

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.9.2, 0.10.0
    • None
    • None
    • None

    Description

      Hi,

      Script

      A = load 'test.txt' using PigStorage() AS (x:int,y:int, z:int) ;
      B = GROUP A BY x;
      C = foreach B generate A.x as s;
      describe C; -- C: {s: {(x: int)}}
      D = FOREACH B {
         E = ORDER A by y;
         GENERATE A.x as s;
      };
      describe D; -- D: {x: int,y: int,z: int}
      

      Here E is a dangling alias.

      Regards,
      Anitha

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              anitharaju Anitha Raju
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: