phi-friday opened a new issue, #41460:
URL: https://github.com/apache/airflow/issues/41460

   ### Apache Airflow version
   
   main (development)
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   ```shell
   Traceback (most recent call last):
     File "/opt/airflow/airflow/models/taskinstance.py", line 766, in 
_execute_task
       result = _execute_callable(context=context, **execute_callable_kwargs)
     File "/opt/airflow/airflow/models/taskinstance.py", line 732, in 
_execute_callable
       return ExecutionCallableRunner(
     File "/opt/airflow/airflow/utils/operator_helpers.py", line 252, in run
       return self.func(*args, **kwargs)
     File "/opt/airflow/airflow/models/baseoperator.py", line 406, in wrapper
       return func(self, *args, **kwargs)
     File "/opt/airflow/airflow/providers/common/sql/operators/sql.py", line 
1182, in execute
       record = self.get_db_hook().get_first(self.sql, self.parameters)
     File "/opt/airflow/airflow/providers/common/sql/operators/sql.py", line 
194, in get_db_hook
       return self._hook
     File "/usr/local/lib/python3.8/functools.py", line 967, in __get__
       val = self.func(instance)
     File "/opt/airflow/airflow/providers/common/sql/operators/sql.py", line 
156, in _hook
       from airflow.hooks.dbapi_hook import DbApiHook as _DbApiHook
   ModuleNotFoundError: No module named 'airflow.hooks.dbapi_hook'
   ```
   
   ### What you think should happen instead?
   
   Now that we've removed the deprecated imports from #41368 , we need to 
modify the following code
   
   
https://github.com/apache/airflow/blob/fcc9f3dc0eb0b9c53f59bbe6619a175779db2cbc/airflow/providers/common/sql/operators/sql.py#L155-L178
   
   ### How to reproduce
   
   Not required
   
   ### Operating System
   
   Not required
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Virtualenv installation
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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