You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I trying to make SqlSensor to work with Oracle database, I've installed all the required provider and successfully tested the connection. When I run SqlSensor I got this error message ERROR - Failed to execute job 32 for task check_exec_date (The connection type is not supported by SqlSensor. The associated hook should be a subclass of DbApiHook. Got OracleHook; 419)
Please use the "Common-sql" sensor for that. Instead of from airflow.sensors import SqlSensor use from airflow.providers.common.sql.sensors import SqlSensors - that should fix the problem.
This is one of the unforeseen effects of "common-sql" introduction.
Unfortunately, other than documenting it, we cannot do much about it.
Please let me know @vlcheong if it fixed your problem. if it does, I will make sure to add appropriate documentation about it.
Activity
boring-cyborg commentedon Jul 25, 2022
Thanks for opening your first issue here! Be sure to follow the issue template!
potiuk commentedon Jul 25, 2022
Please use the "Common-sql" sensor for that. Instead of
from airflow.sensors import SqlSensorusefrom airflow.providers.common.sql.sensors import SqlSensors- that should fix the problem.This is one of the unforeseen effects of "common-sql" introduction.
Unfortunately, other than documenting it, we cannot do much about it.
Please let me know @vlcheong if it fixed your problem. if it does, I will make sure to add appropriate documentation about it.
potiuk commentedon Jul 25, 2022
Mybe I will find another solution for that in the future as well - I will think and dig a bit deeper.
potiuk commentedon Jul 25, 2022
Yeah. I found a solution that will make it works also if you use legacy SqlSensor (will be released in the next common.sql provider)
potiuk commentedon Jul 25, 2022
See #25293
Allow Legacy SqlSensor to use the common.sql providers (#25293)