You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "JongWon Park (JIRA)" <ji...@apache.org> on 2014/10/14 10:58:34 UTC
[jira] [Updated] (HIVE-8284) Equality comparison is done between
two floating point variables in HiveRelMdUniqueKeys#getUniqueKeys()
[ https://issues.apache.org/jira/browse/HIVE-8284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
JongWon Park updated HIVE-8284:
-------------------------------
Attachment: HIVE-8284.patch
> 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
> Reporter: Ted Yu
> Priority: Minor
> 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)