-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new connection type - Greenplum #10641
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
@mebelousov would you like to open a PR? |
Why don't you configure the connection as PostgreSQL and then add the missing information in the description? See: https://github.com/apache/airflow/pull/10873/files |
@mik-laj good idea! Thank you! Seems it's a good work-around. I found out than method In general we have two choices:
|
@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:
|
Greenplum DB is a popular open source relational DBMS[1].
I want to implement some database specific behaviour for a common class. It's easy to check connection type for postgres, mysql or oracle. Now I use postgres connection type for Greenplum and cannot explicitly check type.
Airflow has
PostgresHook
based onpsycopg2
. As Greenplum supports PostgreSQL libpq API [2],PostgresHook
could be reused for Greenplum.As I see it's enough to change 2 code line in the
connectoin.py
.I'm not sure that it's nice to reuse
Hook
.Please confirm or reject my idea.
The text was updated successfully, but these errors were encountered: