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

Projections in nested filter and inside foreach do not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.2.0
    • 0.2.0
    • None
    • None
    • Patch Available

    Description

      The following queries do not work:

      Nested filter:

      a = load 'studenttab10k' as (name, age, gpa);
      b = filter a by age < 20;
      c = group b by age;
      d = foreach c

      { cf = filter b by gpa < 3.0; cp = cf.gpa; cd = distinct cp; co = order cd by $0; generate group, flatten(co); }

      store d into 'output';

      Nested Distinct:

      a = load '/user/pig/tests/data/singlefile/studenttab10k' as (name, age, gpa);
      b = group a by name;
      c = foreach b

      { aa = distinct a.age; generate group, COUNT(aa); }

      store c into 'output';

      Attachments

        1. 430-1.patch
          3 kB
          Shravan Matthur Narayanamurthy
        2. PIG-430_2.patch
          7 kB
          Santhosh Muthur Srinivasan

        Activity

          People

            sms Santhosh Muthur Srinivasan
            sms Santhosh Muthur Srinivasan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: