Skip to content

Commit

Permalink
Fix Google BigQueryHook method get_schema() (#13136)
Browse files Browse the repository at this point in the history
Co-authored-by: Manuel Bordes <manuel.bordes@gamesys.co.uk>
  • Loading branch information
owlphi and miqoti authored Dec 17, 2020
1 parent 1259c71 commit cddbf81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/providers/google/cloud/hooks/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ def get_schema(self, dataset_id: str, table_id: str, project_id: Optional[str] =
"""
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(
Expand Down

0 comments on commit cddbf81

Please sign in to comment.
  翻译: