hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesus Camacho Rodriguez (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-13089) Rounding in Stats for equality expressions
Date Mon, 22 Feb 2016 09:49:18 GMT

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

Jesus Camacho Rodriguez updated HIVE-13089:
-------------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.1.0
           Status: Resolved  (was: Patch Available)

Pushed to master, thanks for the review [~prasanth_j]!

> Rounding in Stats for equality expressions
> ------------------------------------------
>
>                 Key: HIVE-13089
>                 URL: https://issues.apache.org/jira/browse/HIVE-13089
>             Project: Hive
>          Issue Type: Bug
>          Components: Statistics
>    Affects Versions: 2.1.0
>            Reporter: Jesus Camacho Rodriguez
>            Assignee: Jesus Camacho Rodriguez
>             Fix For: 2.1.0
>
>         Attachments: HIVE-13089.01.patch, HIVE-13089.patch
>
>
> Currently we divide numRows(long) by countDistinct(long), thus ignoring the decimals.
We should do proper rounding.
> This is specially useful for equality expressions over columns whose values are unique.
As NDV estimates allow for a certain error, if countDistinct > numRows, we end up with
0 rows in the estimate for the expression.



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

Mime
View raw message