Pig
  1. Pig
  2. PIG-877

Push up filter does not account for added columns in foreach

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.4.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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.

      1. PIG-877.patch
        2 kB
        Santhosh Srinivasan

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Santhosh Srinivasan
            Reporter:
            Santhosh Srinivasan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development