Skip to content

Conversation

@mohit7705
Copy link
Contributor

This PR makes SQLAlchemy an optional dependency for the Postgres provider,
following the same pattern used by other providers (e.g. Presto, Exasol).

Summary of changes:

  • Removed hard SQLAlchemy imports from module level
  • Imported SQLAlchemy lazily inside methods that require it
  • Raised AirflowOptionalProviderFeatureException when SQLAlchemy is missing
  • Kept SQLAlchemy as an optional extra dependency

This aligns the Postgres provider with the guidance described in the parent issue.

@mohit7705
Copy link
Contributor Author

mohit7705 commented Jan 8, 2026

hi @potiuk , @Prab-27 , @justinpzkad

The changes are ready now. Could you please approve the workflows so CI can start running on this PR?

Thanks a lot!

@mohit7705
Copy link
Contributor Author

hi @vincbeck
can you pls verify one more time ,

@mohit7705
Copy link
Contributor Author

@vincbeck ,
can you pls tell me what to do next?

@vincbeck
Copy link
Contributor

vincbeck commented Jan 8, 2026

Looks good on my side + CI is the passing. I'll wait others to approve as well just to be sure

@mohit7705
Copy link
Contributor Author

can you pls tag them

@vincbeck
Copy link
Contributor

vincbeck commented Jan 8, 2026

You already did, you need to give them time. Open source works thanks to people willing to contribute on their free time. They'll review your PR at some point, do not worry

@uranusjr uranusjr merged commit 3deb615 into apache:main Jan 8, 2026
101 checks passed
@boring-cyborg
Copy link

boring-cyborg bot commented Jan 8, 2026

Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions.

@potiuk potiuk linked an issue Jan 9, 2026 that may be closed by this pull request
stegololz pushed a commit to stegololz/airflow that referenced this pull request Jan 9, 2026
Co-authored-by: Your Name <youremail@example.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add proper dependencies for sqlalchemy - postgres

3 participants