Replies: 1 comment
-
|
If you want to use But when you provide a connection of type |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Apache Airflow version
2.5.2
What happened
Using sqlsensor with bigquery authenticated using secrets backend will fail with error
Overriding the sensor as described here can be used as a workaround.
What you think should happen instead
When using SqlSensor,
GoogleBaseHookshould be coerced intoBigQueryHookor whatever type the database being queried is. Google credentials can be used for many different functions. I do understand that there is probably some ambiguity around which sql backend trying to access GCP sql products but is there a way to infer or pass in? I would ideally want to reference the same credentials for multiple GCP operations.How to reproduce
from airflow.providers.common.sql.sensors.sql import SqlSensorand then specify a connection using secrets backend where secrets value starts withgoogle-cloud-platform://These errors do not occur when directly calling bigquery functions like
BigQueryInsertJobOperator()and using the same connection ingcp_conn_id=Operating System
OS X 13.2.1
Versions of Apache Airflow Providers
apache-airflow-providers-google==8.11.0
Deployment
Astronomer
Deployment details
local testing
Anything else
Maybe this is unexpected behavior / better documenting error message rather than bug
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions