Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5094

Assure Comparator to be transitive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 1.10.0
    • None

    Description

      In AssignmentCreator.java, one Comparator could break transitive attribute required for a Comparator implementation and the result is not correct.

      E.g. for:
      long IntPlusOne = 0x80000000L;
      [0]=2 * IntPlusOne + 5, [1] = 2* IntPlusOne + 8, [2] = 4 * IntPlusOne + 4,

      the compare results will be like:
      compare([0],[1]) = -3,
      compare([1],[2]) = 4,
      compare([0],[2]) = 1

      Attachments

        Issue Links

          Activity

            People

              cshi Chunhui Shi
              cshi Chunhui Shi
              Abhishek Girish Abhishek Girish
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: