You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ab...@apache.org on 2019/12/01 15:18:12 UTC

[hive] branch master updated: HIVE-22551: BytesColumnVector initBuffer should clean vector and length consistently (László Bodor reviewed by Jason Dere)

This is an automated email from the ASF dual-hosted git repository.

abstractdog pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new d2e6b50  HIVE-22551: BytesColumnVector initBuffer should clean vector and length consistently (László Bodor reviewed by Jason Dere)
d2e6b50 is described below

commit d2e6b50edb30522ec21d1f88f01db85abe64a5a3
Author: László Bodor <bo...@gmail.com>
AuthorDate: Sun Dec 1 16:10:54 2019 +0100

    HIVE-22551: BytesColumnVector initBuffer should clean vector and length consistently (László Bodor reviewed by Jason Dere)
    
    Signed-off-by: Laszlo Bodor <bo...@gmail.com>
---
 .../java/org/apache/hadoop/hive/ql/exec/vector/BytesColumnVector.java    | 1 +
 1 file changed, 1 insertion(+)

diff --git a/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/BytesColumnVector.java b/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/BytesColumnVector.java
index 1e65449..2c2ef61 100644
--- a/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/BytesColumnVector.java
+++ b/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/BytesColumnVector.java
@@ -130,6 +130,7 @@ public class BytesColumnVector extends ColumnVector {
       if (bufferAllocationCount > 0) {
         for (int idx = 0; idx < vector.length; ++idx) {
           vector[idx] = null;
+          length[idx] = 0;
         }
         buffer = smallBuffer; // In case last row was a large bytes value
       }