You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by xd...@apache.org on 2020/12/17 19:58:46 UTC

[airflow] branch master updated: Fix Google BigQueryHook method get_schema() (#13136)

This is an automated email from the ASF dual-hosted git repository.

xddeng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/master by this push:
     new cddbf81  Fix Google BigQueryHook method get_schema() (#13136)
cddbf81 is described below

commit cddbf81b12650ee5905b0f762c1213caa1d3a7ed
Author: Manuel B <ma...@gmail.com>
AuthorDate: Thu Dec 17 20:57:18 2020 +0100

    Fix Google BigQueryHook method get_schema() (#13136)
    
    Co-authored-by: Manuel Bordes <ma...@gamesys.co.uk>
---
 airflow/providers/google/cloud/hooks/bigquery.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/providers/google/cloud/hooks/bigquery.py b/airflow/providers/google/cloud/hooks/bigquery.py
index 7184511..b7f46d9 100644
--- a/airflow/providers/google/cloud/hooks/bigquery.py
+++ b/airflow/providers/google/cloud/hooks/bigquery.py
@@ -1337,7 +1337,7 @@ class BigQueryHook(GoogleBaseHook, DbApiHook):
         """
         table_ref = TableReference(dataset_ref=DatasetReference(project_id, dataset_id), table_id=table_id)
         table = self.get_client(project_id=project_id).get_table(table_ref)
-        return {"fields": [s.to_api_repr for s in table.schema]}
+        return {"fields": [s.to_api_repr() for s in table.schema]}
 
     @GoogleBaseHook.fallback_to_default_project_id
     def poll_job_complete(