Skip to content

Commit

Permalink
maybe fix export of zero-size array
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Sep 19, 2024
1 parent bf80f47 commit 1c3dfd3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions c/driver/framework/utility.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ void MakeEmptyStream(ArrowSchema* schema, ArrowArrayStream* out) {

void MakeArrayStream(ArrowSchema* schema, ArrowArray* array, ArrowArrayStream* out) {
if (array->length == 0) {
ArrowArrayRelease(array);
MakeEmptyStream(schema, out);
} else {
nanoarrow::VectorArrayStream(schema, array).ToArrayStream(out);
Expand Down

0 comments on commit 1c3dfd3

Please sign in to comment.