Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-2972 Umbrella ticket for test failures in 0.11/trunk
  3. PIG-2975

TestTypedMap.testOrderBy failing with incorrect result

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.11
    • 0.11
    • None
    • None

    Description

      Looked at

      junit.framework.AssertionFailedError
          at org.apache.pig.test.TestTypedMap.testOrderBy(TestTypedMap.java:352)
      

      This looks like a valid test case failing with incorrect result.

      % cat test/orderby.txt
      [key#1,key9#23]
      [key#3,key3#2]
      [key#22]
      
      % cat test/orderby.pig
      a = load 'test/orderby.txt' as (m:[]);
      b = foreach a generate m#'key' as b0;
      dump b;
      c = order b by b0;
      dump c;
      
      % java ... org.apache.pig.Main    -x local test/orderby.pig 
      [dump b]
      (1)
      (3)
      (22)
      
      ...
      [dump c]
      (1)
      (1)
      (22)
      %
      
      where did the '(3)' go?
      

      Attachments

        1. PIG-2975-0_jco.patch
          3 kB
          Jonathan Coveney
        2. PIG-2975-0_jco-v2.patch
          4 kB
          Koji Noguchi
        3. pig-2975-trunk_v01.txt
          2 kB
          Koji Noguchi
        4. pig-2975-trunk_v02-broken.txt
          2 kB
          Koji Noguchi
        5. pig-2975-trunk_v03-unionapproach.txt
          4 kB
          Koji Noguchi
        6. pig-2975-trunk_v04-purerawcompare.txt
          1 kB
          Koji Noguchi
        7. pig-2975-trunk_v05-BinInterSedesRawComparatorAndlightweight-withouttest.txt
          7 kB
          Koji Noguchi
        8. pig-2975-trunk_v05-BinInterSedesRawComparatorAndlightweight-withtest.txt
          14 kB
          Koji Noguchi
        9. pig-2975-trunk_v05-BinInterSedesRawComparatorAndlightweight-withtest2.txt
          16 kB
          Koji Noguchi

        Issue Links

          Activity

            People

              knoguchi Koji Noguchi
              knoguchi Koji Noguchi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: