Skip to content

Commit

Permalink
empty res
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyano committed Feb 25, 2025
1 parent 407c926 commit 342dd90
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,11 @@ private List<ByteBuffer> getBytesFromBatchStream(BatchStream stream, BufferAlloc
}
}
}
if (dataList.isEmpty()) {
VectorSchemaRoot root = VectorSchemaRoot.create(stream.getSchema().raw(), allocator);
root.setRowCount(0);
dataList = getBytesFromVector(root, allocator);
}
return dataList;
}

Expand Down

0 comments on commit 342dd90

Please sign in to comment.