You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Gopal V (JIRA)" <ji...@apache.org> on 2015/02/09 09:32:34 UTC

[jira] [Commented] (HIVE-9619) Uninitialized read of numBitVectors in NumDistinctValueEstimator

    [ https://issues.apache.org/jira/browse/HIVE-9619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14311924#comment-14311924 ] 

Gopal V commented on HIVE-9619:
-------------------------------

[~apivovarov]: If you make those members final, you'll notice that it is uninitialized on the 2nd constructor as well.

Can you fix that un-initialized member error as part of this patchset?

> Uninitialized read of numBitVectors in NumDistinctValueEstimator
> ----------------------------------------------------------------
>
>                 Key: HIVE-9619
>                 URL: https://issues.apache.org/jira/browse/HIVE-9619
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Alexander Pivovarov
>            Assignee: Alexander Pivovarov
>            Priority: Minor
>         Attachments: HIVE-9619.1.patch
>
>
> {code}
>   private int numBitVectors;
>   // Refer to Flajolet-Martin'86 for the value of phi
>   private final double phi =  0.77351;
>   private int[] a;
>   private int[] b;
>   // Uninitialized read of numBitVectors
>   private  FastBitSet[] bitVector = new FastBitSet[numBitVectors];
> {code}



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