Skip to content

Commit d35f9be

Browse files
authored
fix: convert a boolean to a bit vector (#102)
1 parent 3b902f2 commit d35f9be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/src/main/java/io/cloudquery/helper/ArrowHelper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private static void setVectorData(FieldVector vector, Object data) {
6868
return;
6969
}
7070
if (vector instanceof BitVector bitVector) {
71-
bitVector.set(0, (int) data);
71+
bitVector.set(0, (boolean) data ? 1 : 0);
7272
return;
7373
}
7474
if (vector instanceof FixedSizeBinaryVector fixedSizeBinaryVector) {

0 commit comments

Comments
 (0)