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

TestGenericUDFPower should use delta to compare doubles

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.13.0
    • Fix Version/s: 0.13.0
    • Component/s: Tests
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: