fix: Fix dremio dialect not having a `driver` field (#15198)

* Update __init__.py

* Update superset/db_engine_specs/__init__.py

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
This commit is contained in:
Hugh A. Miles II 2021-06-16 20:02:02 -04:00 committed by GitHub
parent 408d58f937
commit 965dacdb33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ def get_available_engine_specs() -> Dict[Type[BaseEngineSpec], Set[str]]:
except Exception: # pylint: disable=broad-except
logger.warning("Unable to load SQLAlchemy dialect: %s", dialect)
else:
drivers[dialect.name].add(dialect.driver)
drivers[dialect.name].add(getattr(dialect, "driver", dialect.name))
engine_specs = get_engine_specs()
return {