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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.16.0
    • tez
    • None
    • 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-1.patch
          7 kB
          Rohini Palaniswamy
        2. PIG-4773-2.patch
          8 kB
          Rohini Palaniswamy

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: