hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gopal V (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-14454) Vectorization: Varchar() -> String should not copy underlying buffers
Date Sat, 06 Aug 2016 01:35:20 GMT
Gopal V created HIVE-14454:
------------------------------

             Summary: Vectorization: Varchar() -> String should not copy underlying buffers
                 Key: HIVE-14454
                 URL: https://issues.apache.org/jira/browse/HIVE-14454
             Project: Hive
          Issue Type: Improvement
          Components: Vectorization
    Affects Versions: 2.2.0
            Reporter: Gopal V


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

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

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



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

Mime
View raw message