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

New logical plan: uid conflict in flattened fields

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.8.1
    • None
    • None
    • Reviewed

    Description

      The following script produce wrong result:

      a = load '1.txt' as (a0:bag{t:tuple(i0:int, i1:int)});
      b = foreach a generate flatten(a0) as (b0, b1), flatten(a0) as (b2, b3);
      c = filter b by b0>b2;
      dump c;
      

      1.txt:

      {(1,2),(2,3)}

      Expected result:
      (2,3,1,2)

      We get nothing.

      Attachments

        1. PIG-1785-1.patch
          11 kB
          Daniel Dai
        2. PIG-1785-2.patch
          13 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: