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

Nested describe failed when the alias is not referred in the first foreach inner plan

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.8.0
    • impl
    • None
    • Reviewed

    Description

      The following script fail:

      A = load 'studentab10k' as (name, age, gpa);
      B = group A by name;
      C = foreach B {
          D = distinct A.age;
          generate group, COUNT(D);
      }
      describe C::D;
      

      If we remove group from generate statement, then it works

      Attachments

        1. PIG-1552-1.patch
          4 kB
          Daniel Dai

        Activity

          People

            daijy Daniel Dai
            daijy Daniel Dai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: