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

Multiquery with different type of key gives wrong result

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13.0
    • 0.14.0
    • impl
    • None
    • Reviewed

    Description

      The following script produce wrong result:

      A = load '1.txt' as (i:int, s:chararray);
      B = group A by i;
      C = group A by s;
      store B into 'ooo1';
      store C into 'ooo2';
      

      1.txt:

      1       h
      1       a
      

      Expected:

      ooo1:
      1       {(1,a),(1,h)}
      ooo2:
      a       {(1,a)}
      h       {(1,h)}
      

      Actual:

      ooo1:
      1       {((1),a),((1),h)}
      ooo2:
      a       {(1,(a))}
      h       {(1,(h))}
      

      This happens after PIG-3591.

      Attachments

        1. PIG-4170-0.patch
          1 kB
          Daniel Dai
        2. PIG-4170-1.patch
          3 kB
          Daniel Dai

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: