Skip to content

Commit

Permalink
Update pyiceberg/table/__init__.py
Browse files Browse the repository at this point in the history
Co-authored-by: Fokko Driesprong <[email protected]>
  • Loading branch information
kevinjqliu and Fokko authored Feb 21, 2025
1 parent d8ce99c commit 23ed2fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyiceberg/table/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,11 @@ def upsert(
Returns:
An UpsertResult class (contains details of rows updated and inserted)
"""
try:
import pyarrow as pa
except ModuleNotFoundError as e:
raise ModuleNotFoundError("For writes PyArrow needs to be installed") from e

from pyiceberg.io.pyarrow import expression_to_pyarrow
from pyiceberg.table import upsert_util

Expand Down

0 comments on commit 23ed2fc

Please sign in to comment.