Skip to content

Commit

Permalink
Fix valueCount when loading NullVector (apache#1)
Browse files Browse the repository at this point in the history
We should set `valueCount` when loading `NullVector`. Unfortunately there's no `nullCount` field.
  • Loading branch information
sunchao committed Mar 17, 2023
1 parent 8abb941 commit eb033fd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ public List<FieldVector> getChildrenFromFields() {
@Override
public void loadFieldBuffers(ArrowFieldNode fieldNode, List<ArrowBuf> ownBuffers) {
Preconditions.checkArgument(ownBuffers.isEmpty(), "Null vector has no buffers");
this.valueCount = fieldNode.getLength();
}

@Override
Expand Down

0 comments on commit eb033fd

Please sign in to comment.