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

TestGenericUDFPower should use delta to compare doubles

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.13.0
    • 0.13.0
    • Tests
    • None

    Description

      TestGenericUDFPower.testDoulePowerDecimal() uses junit's Assert.assertEquals(double, double) to test double equality on result of power udf function.

      Due to floating-number convention, this does not always work. This API is deprecated in favor of Assert.assertEquals(message, double, double, delta).

      Attachments

        1. HIVE-5906.patch
          0.8 kB
          Szehon Ho

        Activity

          People

            szehon Szehon Ho
            szehon Szehon Ho
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: