abhijeets25012-tech opened a new pull request, #60070:
URL: https://github.com/apache/airflow/pull/60070

   ### What does this PR do?
   
   This PR updates the Apache Hive provider to mark SQLAlchemy as an **optional 
dependency**. 
   Previously, SQLAlchemy was effectively a mandatory dependency for Hive hooks 
even if the user didn’t use features requiring it. 
   
   ### Why is this needed?
   
   Some users may want to install the Hive provider without requiring 
SQLAlchemy. 
   Marking it as optional improves flexibility and aligns with Airflow's best 
practices for provider dependencies.
   
   ### What was changed?
   
   - Added `[project.optional-dependencies] "sqlalchemy"` entry in 
`providers/apache/hive/pyproject.toml`
   - Version constraint set to `>=1.4.49` to maintain compatibility with 
Airflow's supported SQLAlchemy versions
   - No functional changes to existing Hive hooks or plugins
   
   ### How to test?
   
   - Install the provider without extras: `pip install 
apache-airflow-providers-apache-hive`
   - Ensure Hive hooks that need SQLAlchemy raise 
`OptionalProviderFeatureException` if SQLAlchemy is not installed
   - Installing with the optional dependency: `pip install 
apache-airflow-providers-apache-hive[sqlalchemy]` works as expected
   
   ---
   
   This PR is part of the **"Add proper dependencies for SQLAlchemy – Hive 
(#59909)"** task.
   
   


-- 
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