diff --git a/ibis/formats/pyarrow.py b/ibis/formats/pyarrow.py index 93c41b7169aa7..fcc8d708f4b05 100644 --- a/ibis/formats/pyarrow.py +++ b/ibis/formats/pyarrow.py @@ -1,5 +1,6 @@ from __future__ import annotations +import contextlib from typing import TYPE_CHECKING, Any import pyarrow as pa @@ -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(),