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/06 22:35:39 UTC

[GitHub] [airflow] mik-laj commented on a change in pull request #5515: [AIRFLOW-4879] add poll_interval and schema to PrestoHook

mik-laj commented on a change in pull request #5515:  [AIRFLOW-4879] add poll_interval and schema to PrestoHook
URL: https://github.com/apache/airflow/pull/5515#discussion_r311303789
 
 

 ##########
 File path: airflow/hooks/presto_hook.py
 ##########
 @@ -41,6 +61,11 @@ class PrestoHook(DbApiHook):
     conn_name_attr = 'presto_conn_id'
     default_conn_name = 'presto_default'
 
+    def __init__(self, *args, **kwargs):
+        super().__init__(*args, **kwargs)
+        self.poll_interval = kwargs.pop("poll_interval")
 
 Review comment:
   Is there a reason why you need to use `*args` and `**kwargs` here? It seems to me that normal parameters will also work here.

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