Skip to content

Commit 81863c5

Browse files
committed
fixed loader
1 parent aa1b766 commit 81863c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

java/vector/src/main/codegen/templates/NullableValueVectors.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ public void loadFieldBuffers(ArrowFieldNode fieldNode, List<ArrowBuf> ownBuffers
130130
throw new IllegalArgumentException("Illegal buffer count, expected 2, got: " + ownBuffers.size());
131131
}
132132
bits.data = ownBuffers.get(0);
133+
bits.data.retain(allocator);
133134
values.data = ownBuffers.get(1);
135+
values.data.retain(allocator);
134136
// TODO: do something with the sizes in fieldNode?
135137
}
136138

0 commit comments

Comments
 (0)