owlphi opened a new pull request #13018: URL: https://github.com/apache/airflow/pull/13018
# Problem I am trying to update my table using the bigquery hook. bq_hook.update_table(...) However I got this message: ``` google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the application. For more information, please see https://cloud.google.com/docs/authentication/getting-started ``` # Solution In the update_table method I have modified the line https://github.com/apache/airflow/blob/master/airflow/providers/google/cloud/hooks/bigquery.py#L717 from : `table_object = self.get_client().update_table(table=table, fields=fields)` to: `table_object = self.get_client(project_id=project_id).update_table(table=table, fields=fields)` It seems working. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
