Pig
  1. Pig
  2. PIG-946

Combiner optimizer does not optimize when limit follow group, foreach

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.3.0
    • Fix Version/s: 0.9.0
    • Component/s: None
    • Labels:
      None

      Description

      The following script is combinable but is not optimized:
      a = load '/user/pig/tests/data/singlefile/studenttab10k';
      b = group a by $1;
      c = foreach b generate group, AVG(a.$2);
      d = limit c 10;
      dump d;

      1. PIG-946-codechange-draft.patch
        1 kB
        Pradeep Kamath
      2. PIG-946.1.patch
        5 kB
        Thejas M Nair

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Thejas M Nair
            Reporter:
            Pradeep Kamath
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development