airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] kaxil closed pull request #3987: [AIRFLOW-3142] Fix deprecated calls to BigQueryBaseCursor.run_query
Date Wed, 03 Oct 2018 19:54:05 GMT
kaxil closed pull request #3987: [AIRFLOW-3142] Fix deprecated calls to BigQueryBaseCursor.run_query

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/airflow/contrib/hooks/ b/airflow/contrib/hooks/
index dd77df1283..f861397d9b 100644
--- a/airflow/contrib/hooks/
+++ b/airflow/contrib/hooks/
@@ -1487,7 +1487,7 @@ def execute(self, operation, parameters=None):
         sql = _bind_parameters(operation,
                                parameters) if parameters else operation
-        self.job_id = self.run_query(sql)
+        self.job_id = self.run_query(sql=sql)
     def executemany(self, operation, seq_of_parameters):
diff --git a/airflow/contrib/operators/ b/airflow/contrib/operators/
index 9386e57c07..e1c3d2bae6 100644
--- a/airflow/contrib/operators/
+++ b/airflow/contrib/operators/
@@ -181,7 +181,7 @@ def execute(self, context):
             conn = hook.get_conn()
             self.bq_cursor = conn.cursor()
-            self.sql,
+            sql=self.sql,


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

View raw message