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 2019/08/29 21:26:49 UTC

[GitHub] [airflow] kaxil commented on a change in pull request #5955: [AIRFLOW-5350] Fix bug in the num_retires field in BigQueryHook

kaxil commented on a change in pull request #5955: [AIRFLOW-5350] Fix bug in the num_retires field in BigQueryHook
URL: https://github.com/apache/airflow/pull/5955#discussion_r319278973
 
 

 ##########
 File path: airflow/contrib/hooks/bigquery_hook.py
 ##########
 @@ -56,7 +56,7 @@ def __init__(self,
             gcp_conn_id=bigquery_conn_id, delegate_to=delegate_to)
         self.use_legacy_sql = use_legacy_sql
         self.location = location
-        self.num_retries = self._get_field('num_retries', 5)
+        self.num_retries = self._get_field('num_retries', 5) or 5
 
 Review comment:
   You are right. I have moved it to GCP Base Hook now, what do you think?

----------------------------------------------------------------
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


With regards,
Apache Git Services