vatsrahul1001 opened a new issue, #47353:
URL: https://github.com/apache/airflow/issues/47353

   ### Body
   
   In https://github.com/apache/airflow/pull/47048 we migrated getting 
connections from BaseHook using task SDK. After this SQLExecuteQueryOperator is 
failing as get_hook is not implemented in Task-SDK.
   
   
   **LOGS**
   
   ```
   [2025-03-04T12:07:48.663140Z] ERROR - Task failed with exception 
logger="task" error_detail=[{"exc_type":"TypeError","exc_value":"get_hook() got 
an unexpected keyword argument 
'hook_params'","syntax_error":null,"is_cause":false,"frames":[{"filename":"/opt/airflow/task_sdk/src/airflow/sdk/execution_time/task_runner.py","lineno":605,"name":"run"},{"filename":"/opt/airflow/task_sdk/src/airflow/sdk/execution_time/task_runner.py","lineno":726,"name":"_execute_task"},{"filename":"/opt/airflow/airflow/models/baseoperator.py","lineno":168,"name":"wrapper"},{"filename":"/opt/airflow/providers/common/sql/src/airflow/providers/common/sql/operators/sql.py","lineno":296,"name":"execute"},{"filename":"/opt/airflow/providers/common/sql/src/airflow/providers/common/sql/operators/sql.py","lineno":195,"name":"get_db_hook"},{"filename":"/usr/local/lib/python3.9/functools.py","lineno":993,"name":"__get__"},{"filename":"/opt/airflow/providers/common/sql/src/airflow/providers/common/sql/operators/sql.p
 
y","lineno":171,"name":"_hook"},{"filename":"/opt/airflow/providers/common/sql/src/airflow/providers/common/sql/operators/sql.py","lineno":164,"name":"get_hook"}]}]
   [2025-03-04T12:07:48.663555Z] DEBUG - Sending request 
json="{\"state\":\"failed\",\"end_date\":\"2025-03-04T12:07:48.663492Z\",\"type\":\"TaskState\"}\n"
 logger="task"
   ```
   
   ### Committer
   
   - [x] I acknowledge that I am a maintainer/committer of the Apache Airflow 
project.


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