Skip to content

Commit

Permalink
feat(datatypes): support pyarrow string view consumption
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Dec 15, 2024
1 parent 3552c73 commit 4779be9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ibis/formats/pyarrow.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import contextlib
from typing import TYPE_CHECKING, Any

import pyarrow as pa
Expand Down Expand Up @@ -43,6 +44,9 @@
pa.binary(): dt.Binary,
}

with contextlib.suppress(AttributeError):
_from_pyarrow_types[pa.string_view()] = dt.String


_to_pyarrow_types = {
dt.Null: pa.null(),
Expand Down

0 comments on commit 4779be9

Please sign in to comment.