-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BigQueryGetDataOperator
does not respect project_id parameter
#30635
Comments
@sudohainguyen can you take a look? |
In Part1, Do you mean |
I guess you meant the billing project for the query execution, you should use |
yes sorry, just edited code sample.
Setting |
Try setting location=my_primary_project 🤔 |
I'm trying to query table in With Without Maybe because it's using hook.project_id rather than self.project_id in _submit_job()? |
@sudohainguyen i think i found it,
|
Apache Airflow Provider(s)
google
Versions of Apache Airflow Providers
apache-airflow-providers-google==8.11.0
google-cloud-bigquery==2.34.4
Apache Airflow version
2.5.2+astro.2
Operating System
OSX
Deployment
Astronomer
Deployment details
No response
What happened
When setting a
project_id
parameter forBigQueryGetDataOperator
the default project from env is not overwritten. Maybe something broke after it was added in? #25782What you think should happen instead
Passing in as parameter should take precedence over reading in from environment
How to reproduce
Part1
in env i have set
The credentials json file doesn't have project
Part2
Unsetting GOOGLE_CLOUD_PROJECT and rerunning results in
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: