Hello All,
I am currently working in a Databricks environment where I am trying to use the `pyiceberg` library to interact with Iceberg table metadata directly in Unity catalog enabled. However, I'm encountering an issue with package compatibility related to the `typing_extensions` module. Specifically, when I try to import `StaticTable` from `pyiceberg`, I receive the following error: ImportError: cannot import name 'deprecated' from 'typing_extensions' (/databricks/python/lib/python3.10/site-packages/typing_extensions.py)
Databricks Runtime Version: 14.3 LTS (includes Apache Spark 3.5.0, Scala 2.12)
Installed Packages: pyiceberg, pydantic, typing_extensions
Attempted to run the following code:
from pyiceberg.table import StaticTable
# Replaced Iceberg metadata path
iceberg_table = StaticTable.from_metadata(location)
data = iceberg_table.scan().to_pandas()
I would appreciate any guidance on how to resolve this compatibility issue, or if there is an alternative method for interacting with Iceberg metadata within Databricks that avoids this error.