Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-8284

Equality comparison is done between two floating point variables in HiveRelMdUniqueKeys#getUniqueKeys()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.14.0
    • 1.1.0
    • CBO
    • None

    Description

          double numRows = tScan.getRows();
      ...
              double r = cStat.getRange().maxValue.doubleValue() -
                  cStat.getRange().minValue.doubleValue() + 1;
              isKey = (numRows == r);
      

      The equality check should use a small epsilon as tolerance.

      Attachments

        1. HIVE-8284.patch
          1 kB
          JongWon Park

        Activity

          People

            youngman0411 JongWon Park
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: