hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Szehon Ho (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-5906) TestGenericUDFPower should use delta to compare doubles
Date Wed, 27 Nov 2013 22:56:36 GMT

     [ https://issues.apache.org/jira/browse/HIVE-5906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Szehon Ho updated HIVE-5906:
----------------------------

    Affects Version/s:     (was: 0.12.0)

> TestGenericUDFPower should use delta to compare doubles
> -------------------------------------------------------
>
>                 Key: HIVE-5906
>                 URL: https://issues.apache.org/jira/browse/HIVE-5906
>             Project: Hive
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 0.13.0
>            Reporter: Szehon Ho
>            Assignee: Szehon Ho
>             Fix For: 0.13.0
>
>         Attachments: HIVE-5906.patch
>
>
> 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).



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message