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

[Pig on Tez] Secondary key descending sort in nested foreach after union does ascending instead

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.16.0
    • Component/s: tez
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      PigSecondaryKeyComparator does not implement a compare(WritableComparable a, WritableComparable b) method. In case of OrderedGroupedMergedKVInput with vertex groups, object comparison instead of byte comparison is done when merging the multiple inputs into one. Since the compare API is not overridden, WritableComparator compare API is called and the value types are directly compared which means it is always ascending.

        Attachments

        1. PIG-4773-2.patch
          8 kB
          Rohini Palaniswamy
        2. PIG-4773-1.patch
          7 kB
          Rohini Palaniswamy

          Activity

            People

            • Assignee:
              rohini Rohini Palaniswamy
              Reporter:
              rohini Rohini Palaniswamy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: