-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
[BugFix]: Creating a PostgresBaseEngineSpec so changes to the Postgre… #4224
Conversation
05cf800
to
8f5204c
Compare
…sEngineSpec don't affect every subclass
8f5204c
to
3ba94ec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not merge! There seem to be more issues (e.g. refreshing the metadata)
@fabianmenges let me know when this is ready to merge |
This is ready to merge and also addresses a small part of #4230 |
superset/db_engine_specs.py
Outdated
class PostgresBaseEngineSpec(BaseEngineSpec): | ||
""" Abstract class for Postgres 'like' databases """ | ||
|
||
engine = 'postgresqlbase' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be empty (no engine attribute) so people extending it have to remember to add something sensible?
Ping, this is still required for Vertica support. |
apache#4224) * [BugFix]: Creating a PostgresBaseEngineSpec so changes to the PostgresEngineSpec don't affect every subclass * Empty engine for abstract Engine
apache#4224) * [BugFix]: Creating a PostgresBaseEngineSpec so changes to the PostgresEngineSpec don't affect every subclass * Empty engine for abstract Engine
…sEngineSpec don't affect every subclass
Refactored all classes that inherit from PostgresEngineSpec to inherit from PostgresBasesEngineSpec instead and moved them all to one place in the file.
#3856 Broke
get_table_names
for Vertica and possibly Redshift and Oracle