Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove top-level import of
pyarrow
(#1703)
The [release candidate artifact build environment](https://github.com/apache/iceberg-python/blob/a58f099aa501f6fd4345a331295d81fe0133554f/.github/workflows/pypi-build-artifacts.yml#L72-L74) does not automatically install `pyarrow`. So when the import requires `pyarrow`, it fails. See run https://github.com/apache/iceberg-python/actions/runs/13464626812/job/37627644985 Import is via `conftest` ``` ImportError while loading conftest '/project/tests/conftest.py'. /project/tests/conftest.py:52: in <module> from pyiceberg.catalog import Catalog, load_catalog ../venv/lib/python3.9/site-packages/pyiceberg/catalog/__init__.py:51: in <module> from pyiceberg.serializers import ToOutputFile ../venv/lib/python3.9/site-packages/pyiceberg/serializers.py:25: in <module> from pyiceberg.table.metadata import TableMetadata, TableMetadataUtil ../venv/lib/python3.9/site-packages/pyiceberg/table/__init__.py:65: in <module> from pyiceberg.io.pyarrow import ArrowScan, expression_to_pyarrow, schema_to_pyarrow ../venv/lib/python3.9/site-packages/pyiceberg/io/pyarrow.py:62: in <module> import pyarrow as pa E ModuleNotFoundError: No module named 'pyarrow' ``` This isnt caught in CI since we install all extra deps by default, including `pyarrow` Tested in the release candidate build action on my fork: https://github.com/kevinjqliu/iceberg-python/actions/runs/13465085426 ✅ cc @geruh --------- Co-authored-by: Fokko Driesprong <[email protected]>
- Loading branch information