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

Push up filter does not account for added columns in foreach

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.4.0
    • 0.4.0
    • None
    • None
    • Reviewed

    Description

      If a filter follows a foreach that produces an added column then push up filter fails with a null pointer exception.

      ...
      x = foreach w generate $0, COUNT($1);
      y = filter x by $1 > 10;
      

      In the above example, the column in the filter's expression is an added column. As a result, the optimizer rule is not able to map it back to the input resulting in a null value. The subsequent for loop is failing due to NPE.

      Attachments

        1. PIG-877.patch
          2 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: