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

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


The following commit(s) were added to refs/heads/master by this push:
     new 2ca69d1  ARROW-1948: [Java] Load ListVector validity buffer with 
BitVectorHelper to handle all non-null
2ca69d1 is described below

commit 2ca69d1dc2ff8d794639ba059455a21462eb0675
Author: Bryan Cutler <[email protected]>
AuthorDate: Thu Dec 28 15:27:50 2017 -0800

    ARROW-1948: [Java] Load ListVector validity buffer with BitVectorHelper to 
handle all non-null
    
    Need to properly set the ListVector validity buffer for the case when the 
field has all non-nulls.  This is done already in 
`BitVectorHelper.loadValidityBuffer`, so just need to build the buffer with a 
call to that function.
    
    Author: Bryan Cutler <[email protected]>
    
    Closes #1447 from 
BryanCutler/java-ListVector-non-null-validity-buffer-ARROW-1948 and squashes 
the following commits:
    
    0d82345 [Bryan Cutler] used BitVectorHelper to properly set the validity 
buffer
---
 .../src/main/java/org/apache/arrow/vector/complex/ListVector.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/java/vector/src/main/java/org/apache/arrow/vector/complex/ListVector.java 
b/java/vector/src/main/java/org/apache/arrow/vector/complex/ListVector.java
index d50d4c4..0c1daf4 100644
--- a/java/vector/src/main/java/org/apache/arrow/vector/complex/ListVector.java
+++ b/java/vector/src/main/java/org/apache/arrow/vector/complex/ListVector.java
@@ -124,7 +124,7 @@ public class ListVector extends BaseRepeatedValueVector 
implements FieldVector,
     ArrowBuf offBuffer = ownBuffers.get(1);
 
     validityBuffer.release();
-    validityBuffer = bitBuffer.retain(allocator);
+    validityBuffer = BitVectorHelper.loadValidityBuffer(fieldNode, bitBuffer, 
allocator);
     offsetBuffer.release();
     offsetBuffer = offBuffer.retain(allocator);
 

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to