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

PushDownForeachFlatten shall not push ForEach below Join if the flattened fields is used in Join

    XMLWordPrintableJSON

Details

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

    Description

      Currently the following script will push B below D. But we will use fattened column in the join, we cannot push that.

      A = load '1.txt' as (bg:bag

      {t:tuple(a0,a1)}

      );
      B = FOREACH A generate flatten($0);
      C = load '3.txt' AS (c0, c1);
      D = JOIN B by a1, C by c1;
      E = limit D 10;
      explain E;

      Attachments

        1. PIG-1172-2.patch
          6 kB
          Daniel Dai
        2. PIG-1172-1.patch
          7 kB
          Daniel Dai

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: