airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] Fokko commented on a change in pull request #3714: [AIRFLOW-2867] Refactor code to conform Python standards & guidelines
Date Wed, 08 Aug 2018 07:40:17 GMT
Fokko commented on a change in pull request #3714: [AIRFLOW-2867] Refactor code to conform
Python standards & guidelines
URL: https://github.com/apache/incubator-airflow/pull/3714#discussion_r208478718
 
 

 ##########
 File path: airflow/contrib/hooks/bigquery_hook.py
 ##########
 @@ -238,6 +238,8 @@ def create_empty_table(self,
 
         :return:
         """
+        if time_partitioning is None:
+            time_partitioning = dict()
 
 Review comment:
   What do you mean? Setting the `{}` in the arguments is bad practice by the way Python creates
these objects.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message