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

FilterLogicExpressionSimplifier removed some branches in some cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.1, 0.9.0
    • 0.9.0
    • impl
    • None
    • Reviewed

    Description

      The following script produce wrong result:

      A = load 'a.dat' as (cookie);
      B = load 'b.dat' as (cookie);
      C = cogroup A by cookie, B by cookie;
      E = filter C by COUNT(B)>0 AND COUNT(A)>0;
      explain E;
      

      a.dat:
      1 1
      2 2
      3 3
      4 4
      5 5
      6 6
      7 7

      b.dat:
      3 3
      4 4
      5 5
      6 6
      7 7
      8 8

      Expected output:
      (3,

      {(3)},{(3)}

      )
      (4,

      {(4)},{(4)}

      )
      (5,

      {(5)},{(5)}

      )
      (6,

      {(6)},{(6)}

      )
      (7,

      {(7)},{(7)}

      )

      We get:
      (3,

      {(3)},{(3)}

      )
      (4,

      {(4)},{(4)}

      )
      (5,

      {(5)},{(5)}

      )
      (6,

      {(6)},{(6)}

      )
      (7,

      {(7)},{(7)}

      )
      (8,{},

      {(8)}

      )

      Attachments

        1. PIG-2067-1.patch
          5 kB
          Daniel Dai
        2. PIG-2067-1-0.8.patch
          6 kB
          Daniel Dai

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: