Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-9619

Uninitialized read of numBitVectors in NumDistinctValueEstimator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.2.0
    • Statistics
    • None
    • Uninitialized read of numBitVectors in NumDistinctValueEstimator

    Description

        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];
      

      Attachments

        1. HIVE-9619.2.patch
          6 kB
          Alexander Pivovarov
        2. HIVE-9619.1.patch
          0.7 kB
          Alexander Pivovarov

        Activity

          People

            apivovarov Alexander Pivovarov
            apivovarov Alexander Pivovarov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: