Skip to content

Commit

Permalink
replace deprecated call
Browse files Browse the repository at this point in the history
  • Loading branch information
ying-w committed Apr 22, 2023
1 parent e8c7f72 commit 5dabb5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/providers/google/cloud/hooks/bigquery.py
Expand Up @@ -2718,7 +2718,7 @@ def execute(self, operation: str, parameters: dict | None = None) -> None:
"""
sql = _bind_parameters(operation, parameters) if parameters else operation
self.flush_results()
self.job_id = self.hook.run_query(sql)
self.job_id = self.hook.insert_job(sql)

query_results = self._get_query_result()
if "schema" in query_results:
Expand Down

0 comments on commit 5dabb5b

Please sign in to comment.