You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m facing an issue where PyIceberg’s usage of SQLAlchemy 2.x is causing compatibility problems with Apache Airflow, which only supports SQLAlchemy 1.4.x. Specifically, I’m getting an ImportError: cannot import name 'DeclarativeBase' from 'sqlalchemy.orm' when running a DAG that uses PyIceberg. This issue occurs because PyIceberg expects SQLAlchemy 2.x, but I’m forced to use SQLAlchemy 1.4.x for compatibility with Airflow. Any advice on resolving this conflict or workarounds to make PyIceberg work with SQLAlchemy 1.4.x while maintaining Airflow functionality would be greatly appreciated.
Willingness to contribute
I can contribute a fix for this bug independently
I would be willing to contribute a fix for this bug with guidance from the Iceberg community
I cannot contribute a fix for this bug at this time
The text was updated successfully, but these errors were encountered:
Airflow. Any advice on resolving this conflict or workarounds to make PyIceberg work with SQLAlchemy 1.4.x while maintaining Airflow functionality would be greatly appreciated.
I think you would either have to change Airflow or PyIceberg.
Apache Iceberg version
0.8.1 (latest release)
Please describe the bug 🐞
I’m facing an issue where PyIceberg’s usage of SQLAlchemy 2.x is causing compatibility problems with Apache Airflow, which only supports SQLAlchemy 1.4.x. Specifically, I’m getting an ImportError: cannot import name 'DeclarativeBase' from 'sqlalchemy.orm' when running a DAG that uses PyIceberg. This issue occurs because PyIceberg expects SQLAlchemy 2.x, but I’m forced to use SQLAlchemy 1.4.x for compatibility with Airflow. Any advice on resolving this conflict or workarounds to make PyIceberg work with SQLAlchemy 1.4.x while maintaining Airflow functionality would be greatly appreciated.
Willingness to contribute
The text was updated successfully, but these errors were encountered: