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 2020/12/11 11:31:40 UTC

[GitHub] [airflow] RosterIn commented on issue #10641: Add new connection type - Greenplum

RosterIn commented on issue #10641:
URL: https://github.com/apache/airflow/issues/10641#issuecomment-743141687


   @mebelousov I think in that case you don't need to duplicate code. you can inherit from PostgresHook and overwrite only the methods that are incomparable. 
   
   You hook can be:
   
   
   ```
   class GreenplumHook(PostgresHook):
       def __init__(self, *args, **kwargs):
           super().__init__(*args, **kwargs)
   
       def _generate_insert_sql():
           pass
   ```


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