hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasanth J (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-6797) Add protection against divide by zero in stats annotation
Date Tue, 01 Apr 2014 05:16:15 GMT

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

Prasanth J updated HIVE-6797:
-----------------------------

    Attachment: HIVE-6797.2.patch

The first check isn't necessary as it doesn't protection against the divide by zero in downstream
operators. Also having the first check will affect PARTIAL basicStatsState cases that are
seen in the test failures. Removed the unnecessary check in this patch.

> Add protection against divide by zero in stats annotation
> ---------------------------------------------------------
>
>                 Key: HIVE-6797
>                 URL: https://issues.apache.org/jira/browse/HIVE-6797
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Query Processor, Statistics
>    Affects Versions: 0.13.0
>            Reporter: Prasanth J
>            Assignee: Prasanth J
>             Fix For: 0.13.0
>
>         Attachments: HIVE-6797.1.patch, HIVE-6797.2.patch
>
>
> In stats annotation, the denominator computation in join operator is not protected for
divide by zero exception. It will be an issue when NDV (count distinct) updated by updateStats()
becomes 0. This patch adds protection in updateStats() method to prevent divide-by-zero in
downstream operators.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message