hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Navis (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HIVE-7306) Ineffective null check in GenericUDAFAverage#GenericUDAFAverageEvaluatorDouble#getNextResult()
Date Tue, 02 Sep 2014 06:21:21 GMT

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

Navis resolved HIVE-7306.
-------------------------
    Resolution: Duplicate

> Ineffective null check in GenericUDAFAverage#GenericUDAFAverageEvaluatorDouble#getNextResult()
> ----------------------------------------------------------------------------------------------
>
>                 Key: HIVE-7306
>                 URL: https://issues.apache.org/jira/browse/HIVE-7306
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.13.1
>            Reporter: Ted Yu
>            Assignee: skrho
>            Priority: Minor
>              Labels: patch
>         Attachments: HIVE-7306.patch
>
>
> {code}
>             Object[] o = ss.intermediateVals.remove(0);
>             Double d = o == null ? 0.0 : (Double) o[0];
>             r = r == null ? null : r - d;
>             cnt = cnt - ((Long) o[1]);
> {code}
> Array o is accessed without null check in the last line above.



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

Mime
View raw message