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

Vectorization: Varchar() -> String should not copy underlying buffers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.2.0
    • None
    • Vectorization
    • None

    Description

      The base byte[] array for a ByteColumnVector is immutable - all changes are made to a scratch column.

        @Override
        protected void func(BytesColumnVector outV, byte[][] vector, int[] start, int[] length, int i) {
          outV.setVal(i, vector[i], start[i], length[i]);
        }
      

      the setVal copies the byte[] array, losing dictionary encoding in the process.

      Attachments

        1. HIVE-14454.1.patch
          0.7 kB
          Gopal Vijayaraghavan

        Activity

          People

            gopalv Gopal Vijayaraghavan
            gopalv Gopal Vijayaraghavan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: