airflow icon indicating copy to clipboard operation
airflow copied to clipboard

fix: sqa deprecations for airflow providers

Open dondaum opened this issue 1 year ago • 0 comments

related: #28723

fix deprecations for SQLAlchemy 2.0 for Airflow providers.

FAB SQLAlchemy 2.0 is changing the behavior when an object is being merged into a Session along the backref cascade. The User needs to be present in the session before it is merged with backref cascade for relationship Role.user.

Openlineage Removed the sqlalchemy_engine completely. First of all in SQLAlchemy 2.0 the ability to associate an Engine with MetaData object is removed, second IMO the sqlalchemy_engine is not used at all in the function. It is passed to MetaData but not used afterwards.

Reported in providers


^ Add meaningful description above Read the Pull Request Guidelines for more information. In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed. In case of a new dependency, check compliance with the ASF 3rd Party License Policy. In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

dondaum avatar Apr 27 '24 21:04 dondaum