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

New logical plan: uid conflict in flattened fields

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.8.1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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-2.patch
          13 kB
          Jianyong Dai
        2. PIG-1785-1.patch
          11 kB
          Jianyong Dai

          Activity

            People

            • Assignee:
              daijy Jianyong Dai
              Reporter:
              daijy Jianyong Dai
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: