Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions wsds/pupyarrow/pupyarrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,8 @@ def _compute_buffer_indices(self) -> list[tuple[int, int]]:
@staticmethod
def _get_num_buffers_for_type(type_id: ArrowType) -> int:
"""Return the number of buffers used by a type."""
if type_id == ArrowType.Null:
return 0
if type_id in (ArrowType.Utf8, ArrowType.Binary):
return 3
if type_id in (ArrowType.LargeUtf8, ArrowType.LargeBinary):
Expand Down