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

call resetValid instead of ensureCapacity in the constructor of BytesRefArrayWritable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 0.10.0
    • None
    • None

    Description

      In the constructor of BytesRefArrayWritable, ensureCapacity(capacity) is called, but "valid" has not been adjusted accordingly. After a new BytesRefArrayWritable has been created with a initial capacity of "x", if resetValid() has not been called explicitly, the size returned is still 0.

      Attachments

        1. HIVE-3876.1.patch.txt
          0.6 kB
          Yin Huai

        Activity

          People

            yhuai Yin Huai
            yhuai Yin Huai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: