hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Chauhan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-8284) Equality comparison is done between two floating point variables in HiveRelMdUniqueKeys#getUniqueKeys()
Date Thu, 13 Nov 2014 06:13:33 GMT

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

Ashutosh Chauhan updated HIVE-8284:
-----------------------------------
    Component/s: CBO

> Equality comparison is done between two floating point variables in HiveRelMdUniqueKeys#getUniqueKeys()
> -------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-8284
>                 URL: https://issues.apache.org/jira/browse/HIVE-8284
>             Project: Hive
>          Issue Type: Bug
>          Components: CBO
>    Affects Versions: 0.14.0
>            Reporter: Ted Yu
>            Assignee: JongWon Park
>            Priority: Minor
>             Fix For: 0.15.0
>
>         Attachments: HIVE-8284.patch
>
>
> {code}
>     double numRows = tScan.getRows();
> ...
>         double r = cStat.getRange().maxValue.doubleValue() -
>             cStat.getRange().minValue.doubleValue() + 1;
>         isKey = (numRows == r);
> {code}
> The equality check should use a small epsilon as tolerance.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message