mohit7705 opened a new pull request, #60236:
URL: https://github.com/apache/airflow/pull/60236

   This PR makes SQLAlchemy an optional dependency for the Postgres provider, 
following the same pattern already applied to other providers (for example 
Presto and Exasol).
   
   ### Summary of changes
   - Removed hard SQLAlchemy imports from module level
   - Imported SQLAlchemy lazily inside methods that require it
   - Raised `AirflowOptionalProviderFeatureException` when SQLAlchemy-dependent 
functionality is used without SQLAlchemy installed
   - Kept SQLAlchemy as an optional extra dependency
   
   This aligns the Postgres provider with the guidance described in the parent 
issue.
   
   ### Note
   Apologies for any confusion earlier — I had to delete the previous PR due to 
some local issues and have opened this new PR with the corrected and final 
changes.
   
   ### References
   - Related to: #59905
   - Parent issue: #59895
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to