You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by gu...@apache.org on 2014/10/24 08:56:25 UTC

svn commit: r1634006 - in /hive/trunk/ql/src: java/org/apache/hadoop/hive/ql/exec/vector/VectorizedBatchUtil.java test/results/clientpositive/tez/vector_data_types.q.out

Author: gunther
Date: Fri Oct 24 06:56:24 2014
New Revision: 1634006

URL: http://svn.apache.org/r1634006
Log:
HIVE-8567: Vectorized queries output extra stuff for Binary columns (Matt McCline via Gunther Hagleitner)

Modified:
    hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorizedBatchUtil.java
    hive/trunk/ql/src/test/results/clientpositive/tez/vector_data_types.q.out

Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorizedBatchUtil.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorizedBatchUtil.java?rev=1634006&r1=1634005&r2=1634006&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorizedBatchUtil.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorizedBatchUtil.java Fri Oct 24 06:56:24 2014
@@ -401,7 +401,7 @@ public class VectorizedBatchUtil {
           BytesWritable bw = (BytesWritable) writableCol;
           byte[] bytes = bw.getBytes();
           int start = buffer.getLength();
-          int length = bytes.length;
+          int length = bw.getLength();
           try {
             buffer.write(bytes, 0, length);
           } catch (IOException ioe) {

Modified: hive/trunk/ql/src/test/results/clientpositive/tez/vector_data_types.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/tez/vector_data_types.q.out?rev=1634006&r1=1634005&r2=1634006&view=diff
==============================================================================
Files hive/trunk/ql/src/test/results/clientpositive/tez/vector_data_types.q.out (original) and hive/trunk/ql/src/test/results/clientpositive/tez/vector_data_types.q.out Fri Oct 24 06:56:24 2014 differ