You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/12/11 12:47:53 UTC

[GitHub] [airflow] owlphi opened a new issue #13011: Hook BigQuery: update table not working.

owlphi opened a new issue #13011:
URL: https://github.com/apache/airflow/issues/13011


   # 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:
users@infra.apache.org



[GitHub] [airflow] owlphi commented on issue #13011: Hook BigQuery: update table not working.

Posted by GitBox <gi...@apache.org>.
owlphi commented on issue #13011:
URL: https://github.com/apache/airflow/issues/13011#issuecomment-743247428


   Hi @turbaszek, I have created the PR: https://github.com/apache/airflow/pull/13018.
   
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] owlphi closed issue #13011: Hook BigQuery: update table not working.

Posted by GitBox <gi...@apache.org>.
owlphi closed issue #13011:
URL: https://github.com/apache/airflow/issues/13011


   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] turbaszek commented on issue #13011: Hook BigQuery: update table not working.

Posted by GitBox <gi...@apache.org>.
turbaszek commented on issue #13011:
URL: https://github.com/apache/airflow/issues/13011#issuecomment-743219777


   @owlphi would you mind opening a PR?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] turbaszek closed issue #13011: Hook BigQuery: update table not working.

Posted by GitBox <gi...@apache.org>.
turbaszek closed issue #13011:
URL: https://github.com/apache/airflow/issues/13011


   


----------------------------------------------------------------
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:
users@infra.apache.org